PM vows to eradicate terrorism