Powerful earthquake of magnitude 5.2 jolts parts of KP