COAS vows to go to any length to eliminate terrorists