A Philadelphia police officer was fatally shot early Saturday in an ambush at a West Philadelphia residence, authorities said, while a second officer was seriously wounded in the incident. The suspect was apprehended after a standoff with responding officers.

The slain officer was identified as Shane Seiber, 40, who served on the force for a decade and leaves behind a 7-year-old son and a 3-year-old daughter, Police Commissioner Kevin J. Bethel said at a news briefing. “He fought valiantly, but he lost his life today,” Bethel said, noting that Seiber’s wife and family were with him before he died.

The other officer, whose name has not been released, sustained 12 gunshot wounds and remains in stable condition at Penn Presbyterian Medical Center, according to Bethel.

Philadelphia District Attorney Larry Krasner identified the suspect as 35-year-old Eric Lewis. Lewis faces charges including murder and homicide of a law enforcement officer, attempted murder, and additional offenses related to the shooting. Krasner stated that Lewis would be held without bail.

Court records indicate that Lewis has a prior criminal history, including convictions for illegal gun possession, disorderly conduct, and theft, with misdemeanors dating back over eight years. In 2015, as part of probation requirements, he was ordered to undergo drug and alcohol assessments as well as a mental health evaluation.

The incident began shortly after midnight, when police received a call reporting a man armed and present on a porch in the 5900 block of West Girard Avenue. Officers Seiber and the second officer were dispatched and arrived approximately 30 minutes later. Upon stepping onto the porch, both were shot and rushed to the hospital.

Additional police officers and members of the SWAT team responded to the scene. The suspect continued firing at officers and was eventually subdued after climbing a tree. Police recovered a shotgun and two handguns on the premises, one of which Lewis had allegedly taken from one of the wounded officers during the attack.

Commissioner Bethel praised the efforts of the officers involved. “I am so damn proud of the men and women who serve in this department,” he said, his voice breaking. “Consistency, they go into danger and they give their lives for this job.”

As news of the shooting spread, scores of police officers, firefighters, and emergency workers gathered outside the hospital throughout the morning to honor Officer Seiber.

Philadelphia Mayor Cherelle Parker released a statement expressing the city’s condolences to Seiber’s family. Pennsylvania’s two U.S. senators also offered their sympathies and gratitude for the police department’s service. Governor Josh Shapiro ordered flags across Pennsylvania to be flown at half-staff in honor of the fallen officer.