Updated

Prosecutors say they have charged a 26-year-old German with membership in an Islamist terror organization and helping prepare attacks in Afghanistan.

The Federal Prosecutors' Office said in a statement Friday that the German national traveled in 2009 to the border region between Pakistan and Afghanistan to learn to use weapons and explosives.

They say the suspect, identified only as Thomas U., took part in an attack on a joint U.S.-Afghan military base in Afghanistan later that year and subsequently praised the so-called German Taliban Mujahedeen group's violent actions in at least two online propaganda videos.

Prosecutors say he also tried to raise funds and recruit new members online for the group.

He was arrested in July 2010 in Turkey and was extradited to Germany earlier this year.