Pakistan carried out a successful test firing of a short-range nuclear-capable ballistic missile on Thursday, the military said.