Even if he had missed and run for cover without taking any more shots, the distraction may well have been enough to save to cop.
I have to respectfully disagree with Old Grump's position that not training for encounters past 7 yards is a waste of time. I do agree that it is GOOD to stretch your abilities.
The reasoning: the (debatable?) fact that merely pointing a handgun at an attacker is enough to end most attacks. If you fire and miss, that should end even more of them.
I don't know what the numbers are, but what percentage of attackers will continue when faced with a victim who is shooting at him?