Pakistan and China military officials held talks on counter-terrorism and regional security amid unease following the recent attacks on Chinese nationals.