Clashes erupted near the Morocco-Spain border crossing, after thousands of migrants into Spain.