Earthquake shakes parts of Punjab, KPK