People really are naive if they think this isn't exactly what the Spanish wanted to happen. Same way we (the EU) pay Turkey to treat people like shit and sink their boats. Governments want to make the whole migration process so cruel it dissuades people from coming, but they want the plausible deniability to convince people (like some in this thread) that it's really on the Moroccans or the Turks if something goes to shit and not them, because after all they are so humane and they just want things (that are impossible to happen legally) to happen legally and they condemn all this violence. The hypocrisy is sickening, really, and while it's to be expected from ruthless politicians and governments, it's quite sad to see some ordinary joes falling for it.
These were desperate human beings, like the poor Ukrainians who have been fleeing for their lives and the entire Europe decided to help and welcome with open arms. If you recognize this help and celebrate it, like you should, there's really only one explanation why you would look at events where Africans or Asians are brutally killed and come up with bullshit like "oh but they are illegal", "the video needs context, and what happened before? I can't see very well". We all know what that explanation is.