"The President expressed confidence that the people of Pakistan and Afghanistan will overcome this setback with fortitude and assured that the Government and people of India would extend whatever support possible in this difficult hour.
"The President conveyed his condolences to the grieving families and prayers for the speedy recovery of the injured," an official statement said.
The powerful 7.5 magnitude quake lasted for one minute, with its epicentre in Jarm, about 250 kms from the capital Kabul in Afghanistan's northeast.
In India, the earthquake sent ripples across several states like Jammu and Kashmir, National Capital Region (NCR), Punjab, Uttarakhand and Rajasthan and left two Army personnel injured in Kashmir's Sopore district.