A 6.3 magnitude earthquake rocked the federal capital and other northern areas of Pakistan on Monday.