Forty-six law enforcement officers were shot and killed in 2017 in the line of duty. One near-fatal encounter was caught on camera.
Newly-released video shows a shootout betweenand a man who about to be sentenced later this month for attempted murder.
Daniel Clary, 22, opened fire on state troopers Ryan Seiple andduring a traffic stop in Nazareth, Pennsylvania, in November. Kelly knelt to shoot back, taking bullets to the leg and neck before leaping to find cover.
It marked a dramatic turn in what started with Clary being pulled over for speeding.
But when the troopers tried to arrest Clary on suspicion of driving while high, he resisted.
Clary was then shot with a Taser. He fell into a lane of traffic and writhed on the ground.
In the struggle, Kelly's spare pistol somehow tumbled loose, although a few seconds later, Seiple secured it.
For a few seconds, Kelly appeared to be in control.
But moments later, the troopers were punching and kicking, all but begging Clary to put his hands behind his back.
Somehow Clary found his feet again and grabbed a pistol from his car. That was when he opened fire on the troopers. He then got inside the car and drove off.
Kelly was left bleeding from a torn femoral artery.
Kelly, who applied his own tourniquet at the scene, was clinically dead and spent 12 days in a coma. He's now recovering and plans to return to work with Seiple.
Clary was arrested at a hospital down the road. He faces sentencing this month for attempted murder.