The Israeli prime minister's popularity has declined among Israelis after the 7 October Hamas attacks.