To show that $k[a] \subset K$ is a field, we must needs establish that any $0 \ne y \in k[a]$ is possessed of a multiplicative inverse $y^{-1} \in k[a]$. Now since $a \in K$ is algebraic over $k$,
$n = [k[a]:k] < \infty, \tag 1$
from which it follows that a linear dependence exists between the first $n$ powers of $y$, that is, between
$1, \; y, \; y^2, \; \ldots, y^{n - 1}, y^n; \tag 2$
that is, there are $\alpha_i \in k$, $0 \le i \le n$, such that $y$ satisfies the polynomial
$\Upsilon(t) = \displaystyle \sum_0^n \alpha_i t^i \in k[t], \tag 3$
viz.,
$\Upsilon(y) = \displaystyle \sum_0^n \alpha_i y^i = 0; \tag 4$
this must be so since the subspace spanned by he $y^i$, $0 \le i \le n$, is of dimension at most $n = [k[a]:k]$. Now since $y$ satisfies a polynomial $\Upsilon(t) \in k[t]$ of degree at most $n$, we may affirm the existence of a polynomial
$\mu(t) \in k[t] \tag 5$
of minimal degree amongst all polyhnomials in $k[t]$ satisfied by $y$:
$\mu(y) = 0, \tag 6$
and
$\forall \Theta(t) \in k[t], \; \Theta(y) = 0 \Longrightarrow \deg \mu(t) \le \deg \Theta(t). \tag 7$
Now if $\mu(t)$ is such a polynomial,
$\mu(t) = \displaystyle \sum_0^{\deg \mu} \mu_i t^i, \; \mu_i \in k, \; 0 \le i \le \deg \mu(t), \tag 8$
I claim that
$\mu_0 \ne 0; \tag 9$
for if not, then
$\mu(t) = t \displaystyle \sum_1^{\deg \mu} \mu_i t^{i - 1}, \tag{10}$
and now (6) yields
$y \displaystyle \sum_1^{\deg \mu} \mu_i y^{i - 1} = \mu(y) = 0; \tag{11}$
since $y \ne 0$,
$\displaystyle \sum_1^{\deg \mu} \mu_i y^{i - 1} = 0, \tag{12}$
which shows $y$ satisfies a polynomial of degree less than that of $\mu(t)$; since by hypothesis this is impossible we conclude that $\mu_0 \ne 0$ and thus
$y \displaystyle \sum_1^{\deg \mu} \mu_i y^{i - 1} = \sum_1^{\deg \mu} \mu_i y^i = -\mu_0 \ne 0, \tag{13}$
or
$y \displaystyle \sum_1^{\deg \mu} -\dfrac{\mu_i}{\mu_0} y^{i - 1} = 1, \tag{14}$
which shows that
$y^{-1} = \displaystyle \sum_1^{\deg \mu} -\dfrac{\mu_i}{\mu_0} y^{i - 1} \in k[a]; \tag{15}$
we thus see that every $y \in k[a]$ is invertible and therefore that $k[a] \subset K$ is a field.
We need to show that $k(a) = k[a]$. Since $k \subset k(a)$ and $a \in k(a)$, we see that any $p(a) \in k[a]$, where $p(t) \in k[t]$, satisfies $p(a) \in k(a)$ since $k(a)$ is closed under the ring axioms; thus $k[a] \subset k(a)$; but we have just seen that $k[a]$ is itself a field, so since $k(a)$ is the smallest field (with respect to set inclusion "$\subset$") containing $k$ and $a$, we must have $k(a) = k[a]$; and we are done.