On Wednesday morning, the US Marshalls Task Force took Paul Leavy into custody in Titusville.
Investigators say Leavy was a passenger in a Freedom Cab when he tried to rob the driver Abdul Jallah near 46th and Walnut streets.
The men struggled and the driver was shot in the hand.
Authorities are working on extraditing Leavy back to Philadelphia to face charges.