PM, COAS discuss national security matters