Not so smooth, and very lucky
Here's another Youtube. An undercover officer sets up a drug deal, but the other guy decides to kill him. (The attacker seems to be having trouble with the gun, another bit of good luck. Upon watching this several times, I think the attacker was stopping to cock for single-action fire after each shot, and going a very clumsy, two-handed job of it). First shot grazes the officer, he goes down. Killer aims at him on the floor, he kicks and deflects aim, another graze.
Officers in the adjoining room come thru the connecting door. In the meantime, the undercover guy gets up and rushes the shooter (I assume he's unarmed, and maybe figured that trying to get out the door would just get him shot in the back, so rushing the guy was the least-worst move). They blast the shooter, and now the undercover officer is in the line of friendly fire (which isn't), and has to leap out of the way.
It illustrates another effect--we can talk about stopping power (and I personally use .44s and .45s) but the human reaction is to go down when hit, in any degree. The undercover guy took a graze, and probably a hand cut up by muzzle blast, and the muzzle blast, and went down, even when it meant his life was now in danger and if he'd stayed up he'd have been much more likely to survive. After he went down the survival instincts kicked in, and he spotted the guy, kicked, and rose up and rushed him.
[UPDATE: The FBI has, I'm told, a training program along the lines of "just because you're hit doesn't mean you're dead." What they'd found was that the majority of people hit crumple, not because anything vital was damaged, but because that's a natural reaction to realizing a hole has been punched thru them. The problem with that in officer vs. perp is that the perp is given a chance to finish the officer off. So the gist of the training was take the hit, stay on your feet, and keep shooting back.]