Earthquake of magnitude 5.1 jolts Islamabad, parts of KP