It happened around 10:00 Friday morning on the 6400 block of Castor Avenue in Northeast Philadelphia.
Police responded to the report of shots fired in the area. Once on the scene, a Philadelphia officer was forced to discharge his weapon.
No one was hit but both suspects were later taken into custody.
Police are unsure why the officer opened fire. The circumstances surrounding the incident remain under investigation.