Pakistan says it has successfully launched a ballistic missile capable of carrying a nuclear warhead up to 2,000 kilometers , the longest range rocket Islamabad has yet tested .