A 54-year-old man who allegedly stole a car with three children inside was fatally beaten by the father and neighborhood men Thursday night in the city’s Strawberry Mansion section, police said.

About 9:15 p.m., the suspect took a Hyundai that was parked outside a pizza shop at 29th and Dauphin Streets while the 25-year-old mother, who left the car’s engine running, went inside to visit the father of two of the children, said Chief Inspector Scott Small.

Police sources on Friday identified the man who allegedly stole the car as Eric Hood of North Philadelphia.

The father — who works at the pizza shop — and mother chased after the vehicle, which became stuck in traffic at 29th and York Streets, Small said. Hood, who was pulled from the vehicle by the couple, ran about a half block before the father caught him and a physical altercation ensued.

Map of Strawberry Mansion neighborhood of North Philadelphia, where a man who allegedly carjacked a car with three children inside was caught and fatally beaten

Other men nearby began assaulting the suspect and he was rendered unconscious, Small said. The suspect was transported to Temple University Hospital and was pronounced dead at 10:05 p.m.

The father and mother stayed at the scene and were taken by police to be questioned by homicide detectives. The children, ages 7 months to 5 years, were placed with family members.

Small said detectives were checking surveillance cameras in the area to see if the events were recorded on video.

District Attorney Larry Krasner said Monday morning that it was too early to comment on any potential charges arising from the incident.