5.2 magnitude quake hits Pakistan