Pakistan should dismantle terrorist networks