[step:Construct a compact set $L$ sandwiched between $K$ and $U$]For each $x \in K$, the space $X$ is locally compact Hausdorff, so there exists an open set $V_x \subset X$ and a compact set $C_x \subset X$ with $x \in V_x \subset C_x$. Define $W_x := V_x \cap U$, which is open in $X$, contains $x$, and satisfies $\overline{W_x} \subset \overline{V_x} \subset C_x$ (since $C_x$ is compact in a Hausdorff space, it is closed by [Compact Subspaces and Hausdorff Spaces](/theorems/307)). Moreover $\overline{W_x}$ is a closed subset of the compact set $C_x$, hence compact.
The open sets $\{W_x\}_{x \in K}$ cover $K$. By compactness of $K$, there exist finitely many points $x_1, \ldots, x_m \in K$ with $K \subset W_{x_1} \cup \cdots \cup W_{x_m}$. Define
\begin{align*}
L := \overline{W_{x_1}} \cup \cdots \cup \overline{W_{x_m}}.
\end{align*}
Since each $\overline{W_{x_i}}$ is compact, $L$ is compact (a finite union of compact sets is compact). Since each $W_{x_i} \subset U$ and $\overline{W_{x_i}} \subset C_{x_i}$, we need to verify $L \subset U$. Each $W_{x_i} = V_{x_i} \cap U \subset U$, so $\overline{W_{x_i}} \subset \overline{U}$. This does not immediately give $L \subset U$.
To refine: since $X$ is locally compact Hausdorff, for each $x \in K$ we can find an open $V_x$ with $x \in V_x$ and $\overline{V_x}$ compact and $\overline{V_x} \subset U$. This uses the regularity of locally compact Hausdorff spaces: by [Separation of Compact Sets in Hausdorff Spaces](/theorems/1026), the compact set $\{x\}$ and the closed set $X \setminus U$ can be separated by open sets, giving $V_x$ with $x \in V_x$ and $\overline{V_x} \subset U$. More precisely: since $x \in U$ and $X$ is locally compact Hausdorff, there exists an open $O_x$ with $x \in O_x$ and $\overline{O_x}$ compact. The set $\overline{O_x}$ is a compact Hausdorff space, hence normal by [Compact Hausdorff Spaces Are Normal](/theorems/1027). The sets $\{x\}$ and $\overline{O_x} \setminus U$ are disjoint closed subsets of $\overline{O_x}$ (the latter is closed in $\overline{O_x}$ since $U$ is open in $X$). By normality of $\overline{O_x}$, there exist disjoint open sets $A, B$ in $\overline{O_x}$ with $\{x\} \subset A$ and $\overline{O_x} \setminus U \subset B$. Taking $V_x := A \cap O_x$, which is open in $X$, we have $x \in V_x$ and $\overline{V_x}^X \cap \overline{O_x} \subset \overline{A}^{\overline{O_x}} \subset \overline{O_x} \setminus B \subset U$. Since $V_x \subset O_x$ and $\overline{O_x}$ is closed, $\overline{V_x} \subset \overline{O_x}$, so $\overline{V_x} \subset U$ and $\overline{V_x}$ is a closed subset of the compact $\overline{O_x}$, hence compact.
Now define $W := V_{x_1} \cup \cdots \cup V_{x_m}$ (open, contains $K$) and $L := \overline{V_{x_1}} \cup \cdots \cup \overline{V_{x_m}}$ (compact, contained in $U$). We have
\begin{align*}
K \subset W \subset L \subset U,
\end{align*}
and $W$ is open, so $K \subset \operatorname{int}(L)$.[/step]