I asked this myself. McCain could be trying to get under Obama’s skin right before the next debate.
Advanced notice of actions in war lessens the effect of the attack. No surprise = no advantage.