Palestinian PM resigns citing ‘new reality’ of Gaza war