The Israeli prime minister will be heading the inquiry into his own government's failings ahead of the Hamas-led attack.