No. I think the companies that see the piracy as a problem should set up a joint fund for creating some lasting investment, schools and hospitals etc in the area where the pirates are based.

Then work with the elders and local people to offer them the benefits on the condition that no more ships are attacked.
If any more ships get attacked, then cancel something in the program etc.

Could work.... Killing the pirates won't have any more success than the "War on Drugs" etc.
As long as people are so poor that they have nothing to lose, they will continue.