Israeli ex-defence officials have criticised the prime minister's conduct over the Gaza war and accused him of prioritising his own political survival.