I have honestly been seeing this conspiracy theory everywhere--that it was a plan concocted by Trump, Israel and Morocco to make the "far right" look good. They point to a few twitter posts where people are talking about it after the fact. It's very antisemitic ultimately, an idea that the Jews Zionists are secretly working with other governments to undermine their enemies.
In actuality it is probably partially of two truths related to international politics--Morocco was mad Spain was working with Algeria and the people smugglers intended to take advantage of the new loophole granted by Spanish judges.