The American rescue followed a similar operation carried out by French navy commandos , who stormed a pirate-held sailboat , the Tanit , in a shootout at sea that killed two pirates and freed four French hostages .