The Jerusalem attack came hours after the Palestinian armed group – which Israel, the UK, US and other Western powers class as a terrorist organisation – agreed with Israel to extend a truce in Gaza for a seventh day, and to allow another exchange of Israeli hostages for Palestinian prisoners.