Policemen secure the area around a building in Copenhagen where shots were fired on February 14. (AFP Photo)

Copenhagen police said early Sunday they had shot dead a man who opened fire on officers hours after two people were killed and five wounded in twin shootings in the Danish capital.



"The police are now investigating if the person could be behind the shootings at Krudttoenden and the synagogue in Krystalgade," police said in a statement.



The exchange of fire took place in the multicultural inner-city neighbourhood of Noerrebro where police had been keeping an address under observation earlier in the day.



"At one point a person who could be interesting in relation to the investigation arrived at the site," police said.

After police called out to him "he opened fire against the police and was thereafter shot," the statement added.



No police officers were injured in the exchange of fire.



A 55-year-old man was killed Saturday when a gunman sprayed bullets at Copenhagen's Krudttoenden cultural centre as it hosted a seminar in which Lars Vilks -- the Swedish artist whose controversial Prophet Mohammed cartoon sparked worldwide protests in 2007 -- was among the speakers.





Hours later, a man was shot in the head and killed early Sunday near Copenhagen's main synagogue in the city centre.A huge manhunt operation was underway in Denmark overnight after the attacker fled following both shootings.

Two policemen were wounded in the shooting at the synagogue, and three more officers hurt in the cultural centre attack.Police said they did not have enough information to confirm whether the two shootings, which come just weeks after a series of bloody Islamist attacks in Paris that left 17 people dead, were linked.