The suspect accused of killing a police officer outside a Montreal hotel had a manifesto that links him to an online community of frustrated men who talk about attacks against people who have sex, an official familiar with the matter confirmed Tuesday.

An armed and dangerous shooter opened fire in Montreal, Canada on Monday morning. A male police officer and a citizen were killed in the attack. A female officer was left injured.

Police say a suspect armed with a long gun opened fire at a Montreal hotel, killing a police officer before officers returned fire, killing him.