RABAT (Reuters) - Moroccan authorities believe four suspects in the killing of two Scandinavian women in the Atlas Mountains were acting on their own initiative, even though they had just pledged allegiance to Islamic State, an official said on Sunday.

Louisa Vesterager Jespersen wears a Bovec Sports Center t-shirt in this undated photo obtained from social media on December 20, 2018. Bovec Sports Center Archive/via REUTERS

Boubker Sabik, spokesman for the Moroccan security and domestic intelligence services, also said the arrest of nine more people in the case had foiled a terror plot.

Louisa Vesterager Jespersen, 24, from Denmark, and Maren Ueland, 28, from Norway were found dead early on Monday near the village of Imlil on a route to Toubkal, North Africa’s highest peak and a popular hiking and trekking destination.

Sabik said on the state 2M TV channel that the four suspects, aged between 25 and 33 years, had headed to the Imlil area intent on committing a crime but without selecting their target in advance.

They had pledged allegiance to Islamic State in a video made on the Friday before the bodies were found, but without agreeing this in advance with any foreign entity.

Sabik described the four as “lone wolves”. “The crime was not coordinated with Islamic State,” he said. “Lone wolves do not need permission from their leader,” he added, without explaining how the authorities had come to their conclusions.

One of them was arrested in 2013 as part of a crackdown on individuals who wanted to join extremists abroad, he said, adding that this suspect had radicalized the other three.

However, he dismissed reports that one was a returning foreign fighter from the Middle East. All four, who originated from the outskirts of Marrakech, had only informal jobs and had a low level of education, he added.

Referring to the nine other suspects detained on Friday in various Moroccan cities, he said their arrests “spared Morocco a terrorist plot”.

Electronic devices, an unauthorized hunting rifles, knives and materials that could be used for bomb-making were found in the course of those raids.

Sabik gave no details of this suspected plot but said Morocco is stepping up efforts to counter security threats posed by the return of Islamic State fighters from Syria and Iraq.

So far 242 out of 1,669 Moroccans who joined the militant group had been arrested, he said. Some fighters were using false passports and trying to hide among refugees heading for Europe as the jihadists suffer setbacks in the Middle East.

Authorities were still trying to authenticate a video that has been shared on social media purporting to show the beheading of one of the victims. “The video has no background and the clothes of the victim are not identical to those in reality,” he said.

Compared with other countries in North Africa, Morocco has been largely insulated from militant attacks. The most recent took place in April 2011, when 17 people were killed in the bombing of a restaurant in Marrakech. In 2017 and 2018, Morocco dismantled 20 militant cells planning attacks in the country.