Why the timing of Hamas attacks on Israel was important