Pakistan test-fires a nuclear-capable ballistic missile, the military says, after the government confirmed it would resume high-level peace talks with arch-rival India.