5.5 magnitude earthquake shakes Pakistan, Afghanistan