The Israeli military says it failed to "imagine such a scenario" before the October 7, 2023 attacks, in terms of size, scale and "brutality".