The tremor, which the U.S. Geological Survey said took place at a depth of 10 km (6.2 miles), was felt across the subcontinent, and shook buildings in the Afghan, Indian and Bangladeshi capitals.