Israel at War

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