Ghulam Haidar Hamidi, the mayor of the southern Afghan city of Kandahar, was killed in an explosion inside his office on Wednesday, the provincial governor's spokesman said, dpa reported.