German authorities said they are holding a man suspected of fighting for a hardline Islamic group in Syria during a stay in the country last year.

Federal prosecutors said Friday a judge ordered the 19-year-old German citizen, identified only as Kreshnik B. in keeping with German privacy rules, kept in custody pending a possible indictment on charges of membership in a terrorist group.

The man is suspected of traveling to Syria last July and undergoing weapons training with an al-Qaeda breakaway group, the Islamic State of Iraq and the Levant. He’s accused of participating in fighting and doing guard duty.

Kreshnik B. was arrested in December after returning to Germany, initially on suspicion of planning an act of violence. Prosecutors say evidence then solidified of his connection to the group.

Meanwhile, Spain’s Interior Ministry said Spanish and Moroccan police have arrested seven suspected members of a cell that allegedly recruited jihadists to fight in Syria and other places.

A ministry statement said Friday three were arrested in Morocco, three in the Spanish north African coastal enclave of Melilla, which borders Morocco, and another on in mainland Spain.

It said one of the seven had returned recently after having spent time with al-Qaida-linked groups.

There were no immediate details on the nationalities of the seven.

Spanish police arrested eight suspected jihadist militants in a similar operation last year in Spain’s other north African enclave, Ceuta.

Copyright 2014 The Associated Press.