COAS, Afghan envoy discuss security