PLAINFIELD TOWNSHIP, Pa. – A state trooper saved his own life by applying a tourniquet after being wounded by gunfire.

Cpl. Seth Kelly, 39, remained hospitalized in critical condition after suffering gunshot wounds to his neck and shoulder area and to his leg in the close-quarters gunfight. Police say the 13-year veteran had a successful second surgery on Thursday, reported 6ABC.

“He’s battling. He’s certainly not out of the woods by any means, but … he is a very strong individual, and he displayed a will yesterday that he wanted to live and get through this,” state police Capt. Richard D’Ambrosio said at a press conference.

The suspect, Daniel Khalil Clary, 22, of Effort, faces charges that include attempted murder of a law enforcement officer and aggravated assault. Clary, who was shot and remains hospitalized, has given a statement to police.

“He’s not denying his involvement,” said Lt. Joseph F. Sokolofski.

Kelly was helping another trooper arrest Clary, whom they suspected of impaired driving under the influence of marijuana. During the investigation, Clary began fighting with the troopers, police said.

The struggle lasted nearly two minutes, and at one point all three men were “wrestling and rolling around” the right lane of busy Route 33, in Plainfield Township, north of Philadelphia, as cars and trucks whizzed by them on the left, D’Ambrosio said.

Despite being hit with a Taser, Clary managed to break free. In doing so, he retrieved a semi-automatic pistol from his car and opened fire on Kelly and Trooper Ryan Seiple, authorities said. Both troopers returned fire, hitting Clary several times. However, Clary was able to flee. Yet, as a result of being hit by gunfire, he drove himself to a hospital. Consequently, he was taken into custody.

Meanwhile, shot and gravely wounded, Kelly had the presence of mind to grab the tourniquet he wore on his service belt and apply it to his bleeding leg, D’Ambrosio said, “more than likely saving his own life.”

Seiple, 31, received a minor injury during the scuffle but was not shot.

Officials thanked emergency medical workers at the scene and staff at St. Luke’s Hospital in Fountain Hill, where Kelly was flown, for saving his life.

“He was in very bad shape when he arrived,” Northampton County District Attorney John Morganelli said Wednesday.

Troopers obtained a sample of Clary’s blood for analysis. At the present time they are awaiting results, which will determine the substance(s) that were in his system.

Morganelli said he will seek a “very, very, very long jail sentence” for Clary, who was not licensed to carry the gun, according to the prosecutor.

(Photo: Screenshot 6ABC news broadcast)