I assume he was absolutely positive there was only one threat.
I saw the video of him leading the sweep up the hallway. He had a number of other armed officers right behind him. So I think he was safe in emptying his weapon.