Terrorists could not weaken nation’s resolve: COAS