Arm your ships and 'engage' anyone.
After one or two experiences of this nature piracy will 'drop-off'.
These are made primarily for airborne threats but I suspect they could get the job done anyway.
I'm figgering a half second burst should do the trick.