An earthquake shook buildings in Pakistan, Afghanistan and northern parts of India on Friday, said witnesses.The epicenter and the magnitude of the earthquake was not immediately known.The Indian subcontinent has suffered some of the largest earthquakes in the world in recent decades.