The chancellor has told Sky News that UK military assets could "potentially" be used to help defend Israel, and the government is "not ruling anything out".