Montreal (AFP)

A midday shooting in Montreal killed three people on Monday, including a police officer, a civilian, and the alleged gunman, triggering rare levels of shock across the Canadian city.

The civilian who has shot dead has been identified as a member of the community.
But police have declined comment on the shooter's motive.

Montreal police chief Fady Dagher said Monday's incident was "a tragedy, a nightmare."

Dagher said police received a call about an active shooting in Montreal's Cote-des-Neiges neighborhood at around 11:30 am (1530 GMT).

Police responded and a shootout ensued, with the assailant firing from inside a building with a long gun, Dagher told reporters at the scene.

Dagher confirmed one male officer, later identified as Mohamed Lamine Benredoune, was shot dead.

Another female officer sustained injuries that were not life threatening.

Dagher also confirmed the gunman was dressed in what appeared to be military-style clothing.

Canadian Prime Minister Mark Carney said he was "horrified" by the violence.

The area had initially been locked down but officers were began leaving the scene on Monday afternoon, and regular traffic was beginning to resume.