The lessons from Hamas’s assault on Israel