Israel announced it would close the consulate after UK said it was imposing sanctions on illegal settlements.