Fourteen people have been detained in Morocco and Spain on suspicion of recruiting people to fight for ISIS in Syria and Iraq, the Spanish Interior Ministry said.