From the way the story reads, the (non-uniformed, unidentifiable) LEO broke down the door, and then, after seeing the hotel room occupant was armed, drew his gun.
If the hotel guest didn't shoot the (non-uniformed, unidentifiable) invader when he first broke in, he certainly would have been totally justified when the non-uniformed, unidentifiable invader went for a gun.
That (non-uniformed, unidentifiable) LEO is so, so lucky . . . he ought to go out and buy a lotto ticket to try and ride his lucky streak.