That wasn't Obama. That was the deck officer in charge at the moment who made the decision to fire on the Pirates, because of the imminent danger to the Captain of the Maersk vessel being held as hostage. It was the deck officers call, not Obama’s.
Thank you bump!