Actually, Morocco isn’t as dangerous as some other countries in the region. In fact, it’s probanly the safest in the region, though I wouldn’t call it perfectly safe. But generally, this sort of attack there is an anomaly, though if something like this were going to happen, I think most folks would figure areas outside Rabbat and Marikesh would be the most likely setting, not in the more traveled cities. Morocco has been a good ally to the US in its efforts to battle extremists in the region and that has produced some anti-western backlash in the country, but not that much to date. I understand that the latest press reports are that the people currently selected are line wolf religious extremists.
https://www.independent.co.uk/news/w...-a8703796.html
But historically, Morocco has been relatively safe compared to almost anywhere else in Africa outside South Africa or some of the more developed West African Democracies.