The video tape below shows Russian Navy commandos on a Somalian pirate ship shortly after the pirates had captured a Russian oil tanker. The Euro Union navy that patrols these waters would not interfere because they feared there could be casualties.
So the Russian Navy Commandos freed their compatriots and the tanker.... and then moved the pirates back totheir own pirate ship,
The Russians searched the pirate ship for weapons and explosives... and found plenty! And then they left the ship and exploded it with all remaining pirates hand-cuffed to it.
Yes, the commandos sank the pirate ship along with the pirates and without any court proceedings, lawyers, etc.
They used the anti-piracy laws of the 18th and 19th centuries where the captain of the rescuing ship has the right to decide what to do with the pirates.
Usually, they were hanged.