A photo tweeted by Danish journalist Steen A Jørgenssen shows a street cordoned off near a synagogue where a man was shot in the head. (Twitter/@SteenAJ)  Copenhagen police believe they have shot dead the gunman responsible for two fatal attacks in the Danish capital.  The city is still in lockdown following the string of shootings, including an incident that saw a gunman pump hundreds of rounds into a cafe where a debate on Islam and freedom of speech was underway.  In a separate shooting one person was shot in the head outside a synagogue while two police officers were shot in the arm and leg.  Copenhagen Police have confirmed they have now shot and killed the man believed responsible.  Police said video surveillance indicated the man was behind both killings.  The offender was shot dead in the suburb of Norrebro near a train station.  "The man was hailed, he opened fire on the police and were then shot. The man has died . No police officers were hit," a police statement said.  People in Copenhagen are being urged to follow all directions from police and to be alert and aware.  Police earlier labelled the first attack on a cafe as a "terrorist attack".  A gunman killed a middle-aged Danish man after opening fire in a cafe where a debate on Islam, art and freedom of speech was taking place.  The gunman wore black and and was speaking in Danish when he reportedly fired at least 100 bullets through the window.  Chilling audio of the moment the gunman began shooting has been released. We warn some viewers may find it distressing.  Police are searching for this man in connection with a shooting in Copenhagen. (AAP)  Headlining the event was Swedish cartoonist Lars Vilks, known for his 2007 caricatures of the Prophet Muhammad.  Vilks has been living under police protection after his controversial cartoons prompted death threats.  The shooter has been described as 25-30 years old, around 185cm (six feet) tall, with an athletic build.  Police initially said two suspects had fled the scene in a Volkswagen Polo. The car was found abandoned around two hours after the attack.  More than 40 bullets were fired at the Copenhagen cafe. (AFP)  Danish police secure the area after a shooting at a Copenhagen freedom of speech rally. (AFP)  Forensic experts investigate the scene in front of the cafe Krudttoenden. (AAP)  After witness statements indicated there was just one attacker, police later said they were hunting for a lone gunman.  The terror attack has been condemned by Danish Prime Minister Helle Thorning-Schmidt.  "Denmark has today been hit by a cynical act of violence. Everything leads us to believe that the shooting was a political attack and therefore a terrorist act," Ms Thorning-Schmidt said.  Three police officers were wounded attempting to protect those inside the venue, according to police.  A spokesman for Copenhagen Police urged people in the city to exercise caution.  "We have a massive presence in the city, and we urge that you take care when walking in the city," Allan Wadsworth-Hansen said.  The assault comes at a time of heightened security and rising fears of Islamist attacks, following January 7-9 incidents in Paris that left 17 people dead.  Anti-terror sweeps carried out across Europe since mid-January have resulted in the arrests of dozens of suspected jihadists and seizures of large stocks of weapons and explosives.  French ambassador Francois Zimeray, who was at the debate, said the attack had "the same intention as Charlie Hebdo", referring to the killings at the satirical newspaper in Paris last month.  "Intuitively I would say there were at least 50 gunshots, and the police here are saying 200," he said.  "Bullets went through the doors and everyone threw themselves to the floor. We managed to flee the room, and now we're staying inside because it's still dangerous. The attackers haven't been caught and they could very well still be in the neighbourhood."  Reporters Without Borders secretary-general Christophe Deloire said concern of renewed attacks targeting symbols of freedom of speech and the press have been growing since the Charlie Hebdo assault.  "It's something that we feared after Charlie Hebdo. We see that ultra-radical groups are leading a war against freedom of expression, against the freedom to be irreverent about religion and against the simple freedom to debate them," Deloire said.  Speaking at the time of the shooting was Femen feminist activist Inna Shevchenko.  "I was at the point of my speech when I was saying that often it is an illusion that we have freedom of speech in Europe. Then we heard shots," she told the Telegraph.  The attacks in Denmark come just a month after the local Jewish community reportedly expressed concern about their safety.  Do you have any news photos or videos?
Gunfire has erupted outside a building in Copenhagen where a debate on Islam and free speech was held, with the event including the author of controversial Prophet Mohammed cartoons and the French ambassador, reports claim.