PM vows to eliminate terrorism