Suspect in Brooklyn subway shooting has ties to Philadelphia