Israeli army chief admits military failed to prevent Oct. 7 attacks