A Philadelphia man, upset with the outcome of a court case, yelled profanities and punched out a holding cell’s window, shattering it, according to a  Lackawanna County deputy sheriff.

Khamir Jamal Wright, 20, faces charges of felony aggravated assault, harassment, and disorderly conduct after the Tuesday incident.

According to the criminal complaint, at about 11:15 a.m., Sgt. Corey Cavalieri was monitoring cameras at the Criminal Justice Center when he spotted Wright screaming in his cell.

Cavalieri watched as Wright punched out the cell door glass. Multiple deputies ordered Wright to sit down, but he refused.

When Cavalieri opened the cell, Wright threatened to kill him if he came in. When Cavalieri stepped into the cell, Wright said he would kill anyone who came near him and punched the back of the deputy’s neck.

Multiple deputies moved in to take control of Wright, ultimately handcuffing and shackling him.

While in handcuffs, Wright told the deputies, “I’m from Philadelphia, I don’t play,” spitting and resisting officers even while he was restrained.

Sheriff’s deputies prepared Wright for transport to the prison, placing a spit hood on his head and alerting prison staff.

When Wright arrived at the jail, he continued to resist, and deputies carried him into the prison, where he was turned over to staff.

He remains in Lackawanna County Prison in lieu of $25,000 bail. A preliminary hearing is scheduled for 10:15 a.m. on Nov. 24 before District Judge Christopher Szewczyk.