I think the security guys went easy on them!
A warning shot could have been delivered at a much larger range but this would have a) allowed the bad guys to get their own weapons ready if not already and 2) shown the bad guys that the ship was armed and to just forget it and move on to the next ship.
Warning shots here clearly moved quickly into lethal shots and that's fine. It's justifiable under one's right to self-defence. I'd like to think I'd have given them a few mags of rapid fire before they bounced off the hull though!
The security guys seemed pretty in control and relatively well practised. Well done them, I'm sure the Captain was chuffed.