Officials say the earthquake was centered in the Hindu Kush mountains of neighboring Afghanistan .