German prosecutors say a second suspect in a failed plot to blow up German trains has turned himself in to authorities in Lebanon.

Germany's federal prosecutor says Jihad Hamad, 19, surrendered to police in the northwestern Lebanese coastal city of Tripoli.

German authorities say the suspect is one of two Lebanese men accused of planting suitcase bombs on trains in Cologne July 31. The devices failed to explode.

German police arrested the first suspect Youssef Mohamad el Hajdib, 21, on Saturday. He was detained in the German city of Kiel, as he apparently was trying to flee the country.

German prosecutors say they will arrange to Jihad Hamad extradited to Germany. Both men are accused of belonging to a terrorist organization.