The Moroccan was captured in Badalona near Barcelona.