I would encourage you to think about this in the following way: For all $m,n\in\mathbb{N},$ let $A_{m,n}=\sum_{k=0}^{m}f(n,k).$ You've supposed that $\lim_{n\rightarrow\infty}A_{m,n}=\sum_{k=0}^{m}a_{k}=:A_{m}$ (since we're only adding finitely many terms, we can interchange sum and limit), and the question is whether $\lim_{n\rightarrow\infty}A_{n,n}=\lim_{n\rightarrow\infty}A_{n}=:A_{\infty},$ which we are supposing to exist. I like this notation for the problem because it decouples the summation index ($m$) from the limit index inside the sum ($n$), which can make it easier to think about.
Moreover, given $A_{m,n}$, if $f(n,0)=A_{0,n}$ for all $n,$ and $f(n,k)=A_{k,n}-A_{k-1,n}$ for all $k\geq1$ and all $n,$ then $A_{m,n}=\sum_{k=0}^{m}f(n,k),$ so this is completely equivalent.
If $A_{m,n}$ converges uniformly to $A_{m}$ as $n\rightarrow\infty,$ then given $\varepsilon>0,$ we may find $n$ large enough that $|A_{m,n'}-A_{m}|<\varepsilon$ for every $m$ and all $n'\geq n$. Then in particular, this holds for $m=n,$ which gives $|A_{n,n}-A_{n}|<\varepsilon.$ Once $n$ is large enough, $|A_{n}-A_{\infty}|<\varepsilon,$ which gives $|A_{n,n}-A_{\infty}|<2\varepsilon,$ which is sufficient to complete the proof.