Police found a "horrendous scene" where five people were killed, and one suspect was shot dead by the police on Sunday, the authorities said.
The suspect's motive hasn't been revealed. The shooting remains under investigation.
York police chief James Macsween said information on whether the shooter lived in the same building as the one he shot five people in remains unclear.