Police in Copenhagen say they have shot dead a man they believe was behind two deadly attacks in the Danish capital hours earlier.Police say they killed the man in the Norrebro district after he opened fire on them.
It came after one person was killed and three police officers injured at a free speech debate in a cafe on Saturday.
In the second attack, a Jewish man was killed and two police officers wounded near the city's main synagogue.
Jens Madsen told reporters the man had been identified and had been on the agency's
Prime Minister Helle Thorning-Schmidt said it was "a very sad morning" and described the shootings as "a cynical act of terror against Denmark".
"We do not know the motive for the alleged perpetrator's actions, but we know that there are forces that want to hurt Denmark. They want to rebuke our freedom of speech,'' she said, according to the Associated Press.
Ms Thorning-Schmidt later visited the synagogue and said Denmark would do everything to protect its Jewish community.
On Saturday a gunman attacked a free-speech debate hosted by controversial Swedish cartoonist Lars Vilks.
One man - identified by Danish media as film director Finn Norgaard, 55 - was killed and and three police officers wounded.
Officials said the gunman fled by car. A black Volkswagen Polo was found abandoned a short distance away.
Police said the gunman then called a taxi to take him home.
They used information from the taxi driver to identify the address, near the railway station in Norrebro. They released
Hours later, a gunman opened fire outside a synagogue in Krystalgade street, about 5km from the scene of the first attack, killing a Jewish man and wounding two police officers.
The victim was named as Dan Uzan, 37. He had been on security duty while a bat mitzvah ceremony was taking place inside the synagogue.
Early on Sunday, police said they had been keeping the Norrebro address under observation, waiting for the occupant to return.
When the man appeared, he saw the officers, pulled out a gun and opened fire, police said. They returned fire and shot him dead.