In this case it certainly relied on the opportunity of targets, ROE in place.
Two of the three targets had their heads close together, out of the upper hatch getting fresh air. The third was keeping watch, when he distanced from the Captain, badda boom, badda bing. A relatively straight forward op.
Certainly, from now on the safest flagged vessels in the world will carry the stars and bars. As it should be.
Not so for the third. More likely an operator came up out of the water and shot the third pirate through the back hatch simutaneously with the shots fired on the topside pirates.
“badda boom, badda bing”...fish food!
I'm sure you meant Stars & Stripes, but that's ok. I think either flag would convey the same message to the pirates.