The quake struck at 0925 GMT on Wednesday at a depth of 65 kilometers. Its epicenter was 25 kilometers northwest of the eastern Afghan city of Jalalabad near the Pakistani border.
Pakistan's meteorological office put the magnitude at 6.2. There were no immediate reports of any damage in either country.