Israel at War

This morning we woke up to a planned attack by the Hamas organization. So far, hundreds of injured and dozens of dead and kidnapped have been reported. Why did the Israeli army take so long to respond?