$R$ is a commutative ring, $M$ and $N$ finitely generated $R$-modules, $\alpha, \beta\in \operatorname{Hom}_{R}(M,N)$, $\mathfrak a\subset \operatorname{rad}(R)$ and $\alpha $ is surjective while $\beta(M) \subseteq\mathfrak aN$, prove that $\gamma=\alpha + \beta $ is an isomorphism between $M$ and $N$.
I understand why it is a surjection according to Nakayama's lemma but I don't know how to prove injectivity since $M$ might be way bigger than $N$ with regard to their generating sets.