Khalid was captured by British forces in 1916, during the East African Campaign of World War I, and exiled to Seychelles and Saint Helena before being allowed to return to East Africa, where he died at Mombasa in 1927.