For the first time, China has confirmed that it assisted Pakistan by providing on-site technical support during its war with India last year.