MONTREAL — With prayers, protests, and a heavy police presence, Canada has marked the anniversary of the Oct. 7, 2023, attack by Hamas on Israel that killed about 1,200 people and triggered an ongoing war.