Israel knew about the Hamas attack before it happened.