We have $S\in\mathbb{B}(\mathcal{H})$ (where $\mathbb{B}(\mathcal{H})$ is algebra of bounded linear operators in Hilbert space) and $S$ is unilateral shift. Compute
$d(S,\mathbb{K(\mathcal{H})})=\inf\{\|S-K\|:K\in \mathbb{K(\mathcal{H})}\}$, where $\mathbb{K(\mathcal{H})}$ are compact operators in Hilbert space.
(Thanks to Daniel for catching an earlier bug in my proof.)
Let $K$ be a compact operator with finite rank. Since $\mathbb{H}$ is infinite dimensional, we have some $x \neq 0$ such that $Kx=0$. Then $(S-K)x = Sx$, and since we have $\|Sx\|=\|x\|$, we see that $\|S-K\| \ge 1$.
Now let $K$ be any compact operator. Then we have compact, finite rank operators $K_n$ such that $K_n \to K$. Since $\|S-K_n\| \ge 1$, and $\|S-K_n\| \le \|S-K\|+\|K-K_n\|$, we see that $\|S-K\| \ge 1$.
The operator $K=0$ is compact, and $\|S-K\| = \|S\| = 1$, hence $K$ is a minimizer. Hence the distance from $S$ to the set of compact operators is one.
Note: The 'only' requirement on $S$ is that it be bounded and $\|Sx\| = \|x\|$ for all $x$. The proof works in any Banach space.