Understanding the Hamas attack