Israel's ambassador to the UK has apologised after an embassy official was caught in an undercover sting discussing how to "take down" Foreign Office Minister Sir Alan Duncan.