Mourners surround the hearse with Omar Abdel Hamid El-Hussein's body as it leaves the mosque on Dortheavej in Copenhagen, enroute to the Muslim cemetery in Broendby February 20, 2015. Lone gunman El-Hussein sprayed a Copenhagen cafe with bullets on February 14, killing a participant at a freedom of speech event, and then fired shots at a synagogue, killing a guard, before being shot dead by police. REUTERS/Nils Meilvang/Scanpix (DENMARK - Tags: OBITUARY CRIME LAW) ATTENTION EDITORS - THIS PICTURE WAS PROVIDED BY A THIRD PARTY. FOR EDITORIAL USE ONLY. NOT FOR SALE FOR MARKETING OR ADVERTISING CAMPAIGNS. THIS PICTURE IS DISTRIBUTED EXACTLY AS RECEIVED BY REUTERS, AS A SERVICE TO CLIENTS. DENMARK OUT. NO COMMERCIAL OR EDITORIAL SALES IN DENMARK. FOR EDITORIAL USE ONLY. NO COMMERCIAL SALES

Hundreds of people on Friday attended the Islamic burial of the gunman who killed two people in twin shootings in Copenhagen last weekend.

Omar El-Hussein, 22, was placed in an unmarked grave in the Muslim cemetery in Broendby, on the outskirts of Copenhagen, watched by around 500 people, mostly young men wearing thick black jackets against the cold and rain, an AFP reporter said.

El-Hussein, a Danish citizen of Palestinian origin, has been identified by police as the gunman who shot dead two people -- a filmmaker and a volunteer Jewish security guard -- in the Danish capital last weekend.

Before the burial, a short ceremony was held at a Copenhagen mosque following Friday prayers.

A man of east African origin, who refused to give his name, told AFP about the ceremony: "There were a lot of young people that you don't normally see there... because they knew Omar. Some of them were gang members.

"They are my brothers too because they believe in Allah and the Prophet Mohammed, but their lifestyle doesn't have a lot to do with Islam," he said.

Copenhagen's Muslim community was divided ahead of the funeral.

A spokesman for the Danish Islamic Burial Fund objected to El-Hussein being buried at a cemetery run by his group.

View photos (AP Photo/POLFOTO, Police Handout) More

"My concern is over extremist attitudes and actions on both sides," Ahmet Deniz told the Jyllands Posten newspaper ahead of the burial.

The funeral organiser, Kasem Said Ahmad, also from the Islamic Burial Fund, rejected claims that large numbers attending the funeral could be interpreted as support for the alleged gunman.

"It is a support for the family, not for him," he told Jyllands Posten.

Denmark has been left in shock after the shootings in Copenhagen that targeted a meeting on free speech and Islam and the capital's main synagogue.

El-Hussein had reportedly been radicalised during a two-year stay in prison for stabbing a man. He was released just two weeks before the killings.

The attacks have prompted parallels with the Islamist attacks in Paris last month, in which 17 people died.