The earthquake struck at a depth of 17 kilometres underground, sending shockwaves through the capital city as well as Rawalpindi.