QUEBEC CITY (AP) — Six people were killed and eight were injured in a shooting at a Quebec City mosque during evening prayers. Authorities reported two arrests in what Canada's prime minister called an act of terrorism.

Quebec provincial police spokeswoman Christine Coulombe said early Monday that some of the wounded were gravely injured. She said the dead were approximately 35 to 70 years of age. Thirty-nine people were unharmed. More than 50 were at the mosque at the time of the attack.

One suspect was arrested at the scene and another nearby in d'Orleans, Quebec. Police don't believe there are other suspects. They did not release names of the two.

"The Muslim community was the target of this murderous attack," Quebec Premier Philippe Couillard said at an early morning press conference Monday.

Couillard said there will be solidarity rallies across Quebec on Monday and says the province's people will all be together to express horror.

Quebec City Mayor Regis Labeaume appeared visibly shaken.

"No person should have to pay with their life, for their race, their color, their sexual orientation or their religious beliefs," Labeaume said.

Quebec City Islamic Cultural Centre President Mohamed Yangui said the shooting in the provincial capital happened in the men's section of the mosque. He said he wasn't at the center when the attack occurred, but he got some details from people on the scene. "We are sad for the families," he said.

Ali Hamadi said he left the mosque a few minutes before the shooting. He said his friend and co-worker Abdelkrim Hassen, who worked in IT for the government, was killed. He said Hassen has three daughters and a wife. He got the neighbor to bring the wife to the hospital so she could hear the news.

She asked, "was he badly hurt?" Hamadi said he had to tell her that Hassen was dead.

Prime Minister Justin Trudeau and Couillard both characterized the attack as a terrorist act, which came amid heightened tensions worldwide over U.S. President Donald Trump's travel ban on certain Muslim countries.

Story continues

"We condemn this terrorist attack on Muslims in a center of worship and refuge," Trudeau said in a statement. "It is heart-wrenching to see such senseless violence. Diversity is our strength, and religious tolerance is a value that we, as Canadians, hold dear.

"Muslim-Canadians are an important part of our national fabric, and these senseless acts have no place in our communities, cities and country," he said. "Canadian law enforcement agencies will protect the rights of all Canadians, and will make every effort to apprehend the perpetrators of this act and all acts of intolerance."

Quebec City police spokesman Constable Pierre Poirier said the mosque had been evacuated and the situation was under control.

Trudeau had earlier reacted to Trump's visa ban for people from some Muslim-majority countries by tweeting Saturday: "To those fleeing persecution, terror & war, Canadians will welcome you, regardless of your faith. Diversity is our strength #WelcomeToCanada."

Trudeau also posted a picture of himself greeting a Syrian child at Toronto's airport in late 2015. Trudeau oversaw the arrival of more than 39,000 Syrian refugees soon after he was elected.

The mayor of Gatineau, Quebec, near Canada's capital of Ottawa, said there would be an increased police presence at mosques around his city following the attack.

The New York Police Department said it was also stepping up patrols at mosques and other houses of worship.

"NYPD is providing additional protection for mosques in the city. All New Yorkers should be vigilant. If you see something, say something," New York City Mayor Bill Blasio said on Twitter.

"Our prayers tonight are with the people of Quebec City as they deal with a terrible attack on a mosque. We must stand together," Blasio said in another tweet.

Canada's public safety minister, Ralph Goodale, said on Twitter Sunday that he was deeply saddened by the loss of life. His office said no motive had been confirmed.

In the summer of 2016 a pig's head was left on the doorstep of the Quebec Islamic Cultural Centre. The incident occurred in the middle of Ramadan, when Muslims fast from dawn to sunset. Practicing Muslims do not eat pork.

Francois Deschamps, an organizer of a refugee-support group in Quebec City, said the motive for Sunday's attack is unknown, but right-wing groups are very organized in Quebec City, distribute fliers at the university and plaster stickers around town.

Deschamps said he has received death threats after starting a refugee support group on Facebook and people have posted his address online.

"I'm not very surprised about the event," Deschamps said.

Canada is generally very welcoming toward immigrants and all religions, but it's less so in the French-speaking province of Quebec which has had a long-simmering debate about race and religious accommodation. A few years ago Quebecers debated a "charter of values" under the previous separatist government, which called for a ban of ostentatious religious symbols such as the hijab in public institutions.

___

Associated Press writer Sean Farrell in Montreal contributed to this report. Gillies reported from Toronto.