A Philadelphia police officer is "fighting for his life" after he was shot in the neck during a traffic stop on Saturday evening, city officials said.

The 31-year-old officer, who is a husband and father, is on life support at Temple University Hospital, Mayor Cherelle Parker told reporters outside the facility.

"As your mayor, it is not lost on me that on today a husband, a father and the son met his partner and went to work to do a job that he's been doing for about six and a half years," Parker said. "He didn't expect that he would be in a fight for his life right now."

Philadelphia Police Commissioner Kevin Bethel said the officer and his partner had conducted a traffic stop around 8 p.m. in the Kensington neighborhood. The vehicle had four people inside, and the officers saw a holster while inspecting the car.

POLICE OFFICERS DRIVEN OUT BY PROGRESSIVE TREATMENT OFFER NEXT-GENERATION LAW ENFORCEMENT A BLUNT WARNING

Philadelphia police officer shot

The person of interest and all other individuals who were in the car were taken into custody. (WPVI)

One man fled and fired three shots at the officers, Bethel said. One officer was struck in the neck, while the other officer returned fire. It was unclear whether gunfire struck the suspect.

Philadelphia police officer shot

A Philadelphia police officer is on life support after he was shot in the neck during a traffic stop in Kensington on Saturday evening. (WPVI)

The wounded officer’s partner drove him to the hospital. The officer remained in the surgical ICU in critical condition. 

Parker wrote on social media that the officer was "on a breathing machine. Fighting for his life."

Philadelphia police officer shot scene

The wounded officer, who is a husband and father, has served the department for over six years, officials said. (WPVI)

Police launched a manhunt for the person of interest, who was eventually taken into custody after two barricade situations. All other individuals inside the car at the time of the shooting were also taken into custody, police said.

SHOOTING OUTSIDE ARKANSAS GROCERY STORE LEAVES 3 DEAD, MULTIPLE WOUNDED, INLCUDING 2 LAW ENFORCEMENT OFFICERS

The wounded officer is a veteran of the police force, having served the Philadelphia Police Department for over six years.

Philadelphia police on scene

City officials asked the public to pray for the officer. (WPVI)

Bethel asked Philadelphians to pray for the officer.

"I ask people across the city of Philadelphia to pray for our officer and pray for the men and women who are here today, who went out in the field knowing that they're going to give their lives for this job," the commissioner said.

CLICK TO GET THE FOX NEWS APP

No further information was immediately provided.

Fox News’ Madison Scarpino contributed to this report.