A Jordanian writer has been shot dead outside court where he was due to face charges for sharing a caricature on social media that was seen as insulting Islam.
The gunman was arrested at the scene, state news agency Petra said. A security source said he was a 39-year-old Muslim preacher in a mosque in the capital.
Writer Nahed Hattar, a Christian and an anti-Islamist activist was arrested last month after he shared a caricature that depicted a bearded man in heaven smoking in bed with women and asking God to bring him wine and cashews.
In the cartoon, the man also asks God to clear his dishes and put a door on his tent and knock before entering.
Many conservative Muslim Jordanians considered Mr Hattar's move offensive and against their religion. The authorities said he violated the law by sharing the caricature.
The state news agency quoted a security source as saying Mr Hattar was killed by a man who fired three shots at him on the steps of the palace of justice in the Jordanian capital.
"The assailant was arrested and investigations are ongoing," Petra quoted the security source as saying.
Two witnesses said the gunman was wearing a traditional Arab dishashada, worn by ultra conservative Sunni Salafis who adhere to a puritanical version of Islam and shun Western lifestyles.
Some secular and liberal supporters of Hattar said his arrest last month was a breach of freedom of speech but other Jordanians thought the caricature's publication had crossed a red line in a Muslim country where it is a taboo to attack God or the prophet.
Mr Hattar was charged with contempt of religion and sowing sectarian tensions. The country's highest official religious fatwa authority criticised Hattar for what it said was the "insult to the divine entity, Islam and religious symbols".
Mr Hattar had apologised on social media and said he did not mean to insult God but had shared the cartoon to mock fundamentalist Sunni radicals and what he said was their vision of God and heaven. He had accused his Islamist opponents of using the cartoon to settle scores with him.
Mr Hattar also supported restricting the rights and privileges of Jordanians of Palestinian descent.
The Jordanian government condemned the attack.
"The law will be strictly enforced on the culprit who did this criminal act and will hit with an iron fist anyone who tries to harm state of law," government spokesman Mohammad Momani said.
The moderate Islamist Muslim Brotherhood group also warned against a flare up in religious and sectarian tensions in a country in which Jordanian Christians are a minority but wield wide political and economic influence.Reuters