During the 1971 Liberation War, Karim was posted as the First Secretary in London at the Pakistan High Commission. He served as the Deputy High Commissioner and went to India in the late 1970s. He went on to serve as the ambassador to China, Iraq, Iran, Egypt and Russia, and high commissioner to Sri Lanka and the United Kingdom. He retired from the foreign service in 1992.