Spain deploys army to stop flow of migrants from Morocco