A group of men in Pakistan offer an absentee funeral prayer for the two Charlie Hebdo shooters. (EPA)

It was a funeral ceremony in honor of two murderers. In Pakistan on Tuesday, that meant flowers, laudatory speeches and posters honoring the killers' brave "sacrifice."

The gathering was billed as a memorial service to honor the al-Qaeda-linked brothers who killed 12 people at the offices of Charlie Hebdo newspaper in Paris last week. Two days after that attack, French security forces killed both after a daylong standoff on the outskirts of the city.

In the northwest Pakistani city of Peshawar, a few religious and political activists decided that Cherif and Said Kouachi needed a proper sendoff -- one suitable for two men the activists deemed religious warriors who sacrificed themselves for their Islamic faith.

Neither brother is known to have any connection to Pakistan nor to have ever traveled here. But organizers said the ceremony was a show of support for their defense of the honor of the prophet Muhammad, whom Charlie Hebdo had frequently lampooned over the years. French authorities suspect the gunmen -- who were heard shouting "We have avenged the prophet" after the attack -- targeted the newspaper because of those depictions.

“We were prompted by our faith to organize this funeral for those two martyred brothers,” said Pir Mohammad Chishti, a religious scholar who runs a seminary in Peshawar. “I only know one thing: They killed the ones responsible for blasphemous against our beloved prophet Mohammad.”

The gathering in Peshawar followed similar protest in neighboring Afghanistan on Friday. In Afghanistan’s southern Uruzgan province, hundreds of demonstrators streamed out of Friday prayers and declared the two brothers “heroes,” according to Reuters.

The rally to honor the shooters was organized by a cleric who runs a seminary in Peshawar. (Getty Images)

In both Afghanistan and Pakistan, those who gathered represent the conservative fringes of their countries' political debate, but they're not necessarily outliers on this topic. Their outcry reflects the deep-rooted passion that many Muslims feel about depictions of the prophet, which Islamic tradition forbids.

It is also something Pakistan forbids. Under the country’s strict anti-blasphemy law – which calls for capital punishment in some cases – the cartoonists at Charlie Hebdo magazine very well could have been criminally charged had they ever stepped in Pakistan. The law, which has been widely condemned in the West, can be triggered if someone is even suspected of demeaning the prophet.

In the aftermath of the shooting, lawmakers in some countries that have blasphemy statues, including Canada and Ireland, have considered ditching the law. There has been no such discussion in Pakistan, where 38 people are serving life sentences or are on death row after being accused of blasphemy, according to Knox Thames, director of policy and research at the U.S. Commission on International Religious Freedom.

At Tuesday's memorial service, Chishti declared over a loudspeaker that Cherif and Said Kouachi had now rightly assumed a place in heaven.

Though small in scale, the event was indicative of the anger in places like Pakistan, which has tough blasphemy laws. (Getty Images)

“Why would any Muslim of strong faith resist and not let us offer prayer for people who proved their love for the beloved prophet?” asked Chishti.

It's worth noting that only a handful of Pakistanis attended the event.  The service was held just a few miles from Peshawar’s Army Public School and College, where seven Pakistani Taliban militants killed about 150 teachers and students last month.

In the aftermath of that attack, Pakistani leaders have vowed to get tough on militants as well as on extremist views and writings.

But Pakistani authorities did not try to stop the memorial service, even though some in the crowd held banners that appeared to cheer the deaths of 12 French civilians.

Aamir Iqbal in Peshawar contributed to this report.