Proof (stack of records)
The preimage theorem says $f\inv(y)$ is a manifold of dimension 0 so is discrete. Since $X$ is compact, $f\inv(y)$ is closed so compact, hence is finite. Write $f\inv(y) = \set{x_1, \ldots, x_n}$.
Since $\d f_{x_i}$ is surjective and $\dim X = \dim Y$, it is an isomorphism, so by the inverse function theorem, there exists an open neighbourhood $W_i\subseteq X$ of $x_i$ such that $f|_{W_i}: W_i \to f(W_i)$ is a diffeomorphism. By separating the $x_i$'s with open sets and intersecting with $W_i$, WLOG assume $W_1, \ldots, W_n$ are disjoint. Take $$ \begin{align*} V := \Bigl(\bigcap_{i=1}^{n} f(W_i)\Bigr) \setminus \Bigl(f(X \setminus \bigcup_{i=1}^{n} W_i)\Bigr) \end{align*} $$ which is open in $Y$: $X \setminus \bigcup_{i=1}^{n} W_i$ is closed in $X$ so compact, and thus its image under $f$ is compact so closed.
Defining $$ \begin{align*} W_i' := W_i \cap f\inv(V), \end{align*} $$ check $$ \begin{align*} f\inv(V) = W_1' \sqcup \ldots\sqcup W_n'. \end{align*} $$ and $y\in V$.