A Berlin court says it has convicted a 36-year-old man of membership in a terrorist organization for fighting with the Islamic extremist group Junad Al-Sham in Syria.

Berlin state court spokesman Tobias Kaehne said Fatih K., whose last name wasn't given due to privacy laws, was sentenced Wednesday to six years in prison. The German citizen was already convicted in 2011 of supporting a different Islamic terrorist organization and served nearly two years behind bars.

In this case, the court found he traveled to Syria in mid-2013 to join the group and received military training. He also served as a cameraman on propaganda films.

He returned to Germany later that same year and was arrested in 2014. An accomplice, Fatih I., was convicted in June of supporting Junad Al-Sham.