If he KNEW where his fellow officers were and saw muzzle flashes from another place it's fairly safe to assume that's a guy firing at your fellow officers.  Shooting through the floor is quite unlikely to end the threat though.   So I don't think you can make the argument of blindly firing.