Desmond Abernathy, 50, is charged with criminal homicide, aggravated assault, simple assault, violation of Uniform Firearms Act and related offenses.
Curt Joseph, 47, is charged with hindering apprehension, violation of the Uniform Firearms Act, tampering with evidence, obstructing justice and related offenses.
The incident happened at about 11:14 p.m. Tuesday between the 5300 block of Lindbergh Boulevard and the 5300 block of Grays Avenue.
Officers were in the area when they heard several gunshots coming from a rear alleyway.
Two officers in uniform went to the back of a home where they saw Abernathy on a back porch holding a gun in his hand.
The officers approached Abernathy, and told him to drop his weapon. That's when police say he fired one shot at the officers, but missed.
One of the officers fired back, shooting Abernathy in the right thigh.
Police say Abernathy then fled into the house, and officers made the arrest.
Upon entering the home, officers observed Joseph fleeing the property through the front door.
He was later arrested, and a weapon was recovered, police say.
Abernathy was taken to Penn Presbyterian Medical Center. He is in stable condition.
The officers were not injured.