CNN) -- Two pirates in Somalia vowed revenge Monday, after the U.S. military killed three pirates and freed a U.S. ship captain who had been held hostage for several days. Crew members of the Maersk Alabama celebrate after hearing the Navy had rescued their captain from pirates. The pirates told a Somali journalist that they were angered by the U.S. action, as well as a French raid Friday that killed two pirates and one hostage and freed four hostages. "We have decided to kill U.S. and French sailors if they happen to be among our future hostages," said Abdullahi Ahmed, a member of a pirate group based at Harardhere, a coastal town in central Somalia.