This is a Random Event. Occurs in:
There are few more zealous in their customs checks than the Zoltan. A team of border police beam on board. There's just a little confusion over your weapons licences, but things escalate rapidly from heated discussion to gunfire!
This event is called "ZOLTAN_BOARDERS" in the datafiles.