The officers jumped out of their van and ran east, Small said, and soon confronted two armed 21-year-old men running from the intersection, and ordered them to drop their weapons.
"They were both in full uniform, so there was no mistaking they were police," Small said.
One man complied, but the other fired about 10 shots at the two officers, Small said. One of the officers fired back, striking the suspect in the shoulder and grazing his head, Small said.
The alleged shooter had an extra-capacity magazine in his gun and had bullets to spare when he was struck, Small said.
At Mascher and Louden, police found a 20-year-old man shot in the leg, Small said. Police found 32 spent shell casings in the intersection.
Both men who were shot were taken to Temple University Hospital and were reported in stable condition.
Small said the officers were in the area initially to assist Department of Human Services workers.
"The police happened to be in the right place at the right time," Small said.