President vows to eliminate terrorism