Israel has said the “time has come to teach the United Nations a lesson” by banning UN officials from visiting the country – in a row over remarks from secretary-general Antonio Guterres that the deadly 7 October attack by Hamas “did not happen in a vacuum” and had to be seen in the context of decades of occupation of the Palestinians.