Countering one atrocity with another reduces us to their level
Otherwise known as destroying the will of the enemy to continue to wage war.
Perfectly acceptable response.
Kill every pirate on the spot. Commander of the intercepting vessel decides summarily whether they are pirates or not. I think I could make that decision and authorise the response.
Possibly consider, if helicopter available, taking the bad boys, suitably restrained, and dropping them over selected villages.