Afghanistan on Tuesday ordered a top European Union official and a United Nations employee to leave the country for allegedly threatening national security .