JAKARTA (Reuters) - An Indonesian teenager who attacked a Catholic priest in his church was inspired by the murder of a French priest in July and guided by a radical compatriot in the Islamic State stronghold of Raqqa, Jakarta’s national police chief said on Wednesday.

Police are seen outside Saint Joseph's Catholic Church after a suspected terror attack by a knife-wielding assailant on a priest during Sunday service in Medan, North Sumatra, Indonesia August 28, 2016 in this photo taken by Antara Foto. Picture taken August 28, 2016.Antara Foto/Irsan Mulyadi/ via REUTERS

But the youth’s bomb-making skills, acquired over the internet, were amateurish and his suicide bomb belt failed to explode, General Tito Karnavian told foreign journalists. Parishioners overpowered the 17-year-old when he assaulted the priest with a knife on Sunday, and he is now in police custody.

Karnavian said the unsuccessful attack showed the phenomenon of a “lone wolf” radicalised over the internet was spreading in the world’s largest Muslim-majority nation, projecting the violence of the Middle Eastern militant group Islamic State (IS) as far afield as Indonesia, where Muslims and Christians have mostly lived in harmony.

The attacker took his inspiration from reports of the murder of Father Jacques Hamel, 85, who died after two militants slit his throat during Mass in a suburb of Rouen in northern France in July. The murder was the latest in a grim series of radical Islamist killings that have rocked France in recent years.

“He was imitating ... the priest attack because of the internet,” Karnavian said.

“Based on communications, we found he also had a connection with an Indonesian in Syria,” he added, explaining the compatriot was a radical based in Raqqa. “It is an indication that the lone wolf (phenomenon) is growing in Indonesia.”

There were no serious casualties in Sunday’s attack in the northern city of Medan, though the priest and the attacker – named as Ivan Armadi - suffered minor injuries, according to police.

NO LINKS TO LOCAL RADICALS

Hamel’s murder was the first Islamist attack on a church in western Europe and came just 12 days after a Tunisian who had pledged allegiance to IS drove his truck through a crowd of Bastille Day revellers in the Riviera city of Nice, killing 85.

Indonesian Chief Security Minister Wiranto said on Monday that Armadi had a note in his backpack saying “I love al-Baghdadi”, referring to the head of the Islamic State group.

“From the cellphone that was seized by security forces, this youth was obsessed with Abu Bakr al-Baghdadi,” said Wiranto, who goes by one name.

Karnavian said police had found no indication Armadi had any contacts to Islamist networks in Indonesia, so his attack was considered a case of self-radicalisation and not sectarian violence rooted in tensions between religious communities in traditionally tolerant Indonesia.

Indonesia has the world’s largest Muslim population and the vast majority practice a moderate form of Islam. But a small minority of militant Islamists has been growing in recent years, inspired in part by Islamist militant groups like al Qaeda and IS.

Religious Affairs Minister Lukman Hakim Saifuddin was more cautious than Karnavian when asked about the Medan attack, saying “conflicts related to religion are not based on religion”.

He said religions preached peace, so violent radicals claiming to act in the name of Islam were really exploiting the faith to promote their own political goals based mostly on social or economic injustice they experienced in Indonesia.

The government was drawing up a draft law to limit hate speech on social media that would limit extreme statements by all religious communities, he said.

“This is the challenge that must be faced.”

HUNDREDS OF ISLAMIC STATE SYMPATHISERS

Saifuddin and Karnavian spoke in briefings to foreign journalists on a study tour sponsored by the Hawaii-based East-West Center, a non-profit organisation financed in part by the U.S. government.

Karnavian said that Armadi had said two men paid him to stage the attack at St Joseph’s Church in Medan, but police doubted his story and thought it was meant to lessen his blame in the operation.

“We strongly believe this was not sectarianism, because he was a lone wolf,” he said, adding that many Muslims in the Medan area had condemned the attack.

Indonesian counter-terrorism officials have said there are hundreds of IS sympathisers in the country.

Indonesia suffered its first IS-linked attack in January, when four people died in a gun and bomb assault in the capital Jakarta.