Police in Copenhagen shot dead a gunman whose attacks on a synagogue and an event promoting free speech in the city may have been inspired by an attack on French satirical weekly Charlie Hebdo last month.
Denmark's spy chief Jens Madsen said the gunman was known to the intelligence services prior to the shooting and probably acted alone. He did not elaborate.
Two civilians were killed and five police were wounded in the two separate attacks in the Danish capital on Saturday.
"We cannot yet say anything concrete about the motive ... but are considering that he might have been inspired by the events in Paris some weeks ago," Madsen told a news conference.
Danish authorities have been on alert since Islamist gunmen killed 17 people in three days of violence in Paris in January that began with an attack on Charlie Hebdo, long known for its acerbic cartoons on Islam, other religions and politicians.
Police who had earlier released a photo of the suspect dressed in a heavy winter coat and maroon mask, said they did not believe he had received training in Jihadist camps in the Middle East.
Witnesses to the Copenhagen attacks said the gunman fired up to 40 shots at a cafe hosting a free speech event with Swedish artist Lars Vilks, who has received death threats for depicting the head of the Prophet Mohammad on a dog.
Vilks was unhurt but a 55-year-old man was killed. A guard was later shot in the head outside Copenhagen's biggest synagogue, where around 80 people were celebrating a confirmation. Two police officers were also wounded there.
Police shot dead the suspect early yesterday after he opened fire on them near a railway station in the Noerrebro district, not far from the sites of the two attacks. Officers later searched his home, which was nearby.
Prime Minister Helle Thorning-Schmidt said the attacks were terrorism and promised to protect freedom of speech and Denmark's small but vibrant Jewish community.
"When you mercilessly fire deadly bullets at innocent people, when you attack the Jewish community, you attack our democracy," she said. "We will do everything possible to protect our Jewish community."