This is the only way to deal with pirates. Pirates are beyond the pale. This is why whenever they were caught, they were summarily executed or punished. They do not work on the basis of normal behaviour. Whether we are talking about Julius Caesar or the North African Barbary States, they only stop once they have been thumped hard.
Similarly, these Somalian pirates need to be prosecuted to the full extent of the law and armed might. This is a very good step, I just wish the other navies take a step and do the same. Way to go, Sarko.