COPENHAGEN, Denmark – Thousands of people marched through Copenhagen in freezing winds to remember the victims of weekend shootings that police say may have been an attempt to copy the massacre at Charlie Hebdo in Paris.

The memorial was held near the site of the first attack, where a meeting to discuss art and free speech ended in bloodshed after a gunman opened fire on Saturday. Like in Paris, a second attack targeted the Jewish community. The suspected gunman died in a shootout with police on Sunday. Two men have since been arrested on charges of having assisted him.

"We're full of sorrow, we're heavy, how should we react when terror and hate wash over our country?" Prime Minister Helle Thorning-Schmidt said at the rally. "Our answer is clear: When others try to scare us and split us, our answer will always be a strong community."

The shootings, which killed a Danish filmmaker and a Jewish man guarding the entrance to a synagogue where about 80 guests were celebrating a Bat Mitzvah, triggered reactions from across the globe. Leaders from Germany to the U.S. and the U.K. expressed their dismay and sent condolences.

Representatives from Denmark's Jewish and Muslim communities joined the rally, along with guests from abroad including Sweden's prime minister.

Lighting the night with torches, Copenhageners listened to music, including John Lennon's "Imagine," sung by Pernille Rosendahl, and speeches from the head of Denmark's Jewish Community and the French Ambassador Francois Zimeray, who was at the meeting where the first shooting occurred.

"We reject unequivocally the actions of this man," Sami Kucukakin, chairman of Muslimernes FaellesRaad, the nation's largest Muslim group, said in an interview on his way to the rally. "As a Muslim I can't identify at all with what he did."

Danish law enforcement is trying to figure out whether the gunman was working on his own or as part of a more organized attack. Police have identified him as a 22-year-old who grew up in Denmark and had a criminal record. Surveillance pictures show him speaking on a mobile phone between the attacks.

Thorning-Schmidt said at a news conference Monday that there's "no indication" that he was part of an organized cell.

According to local media, the alleged killer's name was Omar Abdel Hamid El-Hussein, whom classmates described as hot- headed. He received a two-year sentence for knifing a person on a train, and was released early, just two weeks before the fatal weekend shootings, broadcaster TV2 said.

While in prison, he expressed a wish to join the Islamic State in Iraq and the Levant, according to newspaper Berlingske. A video defending jihad was uploaded on El-Hussein's Facebook page and posted on YouTube by a group called Proud Muslim, tabloid Ekstra Bladet said.

The suspect's father said in a TV2 interview that he was shocked by the actions of his son, who wasn't especially religious. "I don't know what happened," he said, according to the broadcaster, which didn't disclose the father's name. "This is very hard."

Thorning-Schmidt urged Danes not to be bullied into changing their way of life by the weekend's events. "We must go back to doing our business as normal, we must think, speak they way we want to," she said. "We are who we are."