Rabat - A Spanish judge imprisoned a Moroccan restaurant cook earlier this week as he had been preparing to carry out a terrorist attack in the European country, according to a report by the New York Times.

Zainab Calcuttawala is an American journalist based in Morocco.