The epicentre of the quake was in Afghanistan at a latitude of 36.49 degrees north and longitude of 71.27 degrees east, at a depth of 165 km, officials said.