COAS hails military’s role in national security