6.2 magnitude quake shakes Pakistan, India, Afghanistan