The attack killed some 1,200 people, mostly civilians, and Hamas took 251 hostages.