Except the Barbary Pirates were not destroyed by that action, only temporarily checked. The problem was not solved until the French colonised Algeria in the 1830s.
The article does allude to one thing that did solve piracy. As France did with the Barbary Pirates, Britain did with the Carribean pirates not simply by raiding pirate bases, but occupying their nests and imposing responsible government. That is what needs to happen in Somalia before the pirate problem is resolved...
If Somalia is an anarchy, why isn’t somebody like China or Russia interested?