NORFOLK, Va. (AP) — The former commander of the USS Sterett says his orders were to prevent a band of Somali pirates from taking four American hostages with them from their yacht to shore. He says his crew, though, wasn’t authorized to use lethal force.

Cmdr. Darren McPherson testified in federal court in Norfolk Friday that he specifically told his crew not to shoot at the Quest even if the pirates fired at his ship. McPherson says the risk of harming the Americans was too great.

The yacht’s owners, Jean and Scott Adam of Marina del Rey, Calif., and their friends, Bob Riggle and Phyllis Macay of Seattle, were fatally shot in February 2011. They were taken hostage several days earlier hundreds of miles south of Oman.