A man was shot by a Philadelphia police officer Wednesday morning after police say he attacked officers with a screwdriver inside the 39th Police District building.

Police say an officer who was working in the operations room went to speak with a man who was in the lobby wearing a mask. The officer was unable to hear the man through a glass window in the operations room, Fox29 reports.

The officer opened the secure side door to the operations room to go and speak with the 23-year-old suspect. At that point, Philadelphia Police Sergeant Eric Gripp says the suspect, who was armed with a screwdriver, lunged into the operations room and at the officer. 

A second officer got involved in the scuffle and attempted to disarm the suspect as he swung the screwdriver. 

During the altercation, a female officer who was inside the operations room discharged her service weapon, striking the suspect in the torso. 

Two officers were injured during the attack. They are expected to be OK.

The suspect was critically wounded. He is reportedly stable.