If you put a laser on a ship that can be visible from 2km away, then what prevents the pirates from buying long ranged munitions and using the laser as a target locator. Furthermore, isn't it a little dangerous especially considering the US is already in the development of precision (IE laser targeting) guided small arms.