NEW YORK CITY — NYPD officers were dispatched to guard some Muslim houses of worship in New York after six people were fatally shot at a Quebec mosque Sunday night, officials said.

Gunmen opened fire on the Islamic Cultural Center of Quebec about 8 p.m., killing six and injuring eight others in what Canadian Prime Minister Justin Trudeau called a "terrorist attack on Muslims," according to The New York Times.

Two people were taken into custody after the attack, the Times reported.

The NYPD's Critical Response Command has been assigned to "certain mosque locations" in New York, NYPD officials said Sunday night, but didn't provide further details.

Police officers were also directed to give special attention to all mosques and houses of worship throughout the city, officials said.

New York police are continuing to monitor the Quebec attack, they said.