When you activate an offensive ability, and target a non-hostile character, the cooldown begins right away and your mana/energy drains at the same time the 'This character is not hostile' confirmation prompt appears.
Oh, I just noticed the ability is being used, even though I selected 'no' on the prompt. So the issue isn't that the cooldown is activating, but that the ability is being used regardless of what you choose.