Penn Hills police said two men were arguing at a bar and the argument continued as they walked in the area.
At one point, one of the men pulled out a gun and shot the other near the Sunoco gas station.
The victim was taken to the hospital with non-life-threatening injuries.
No suspects have been identified.