Proof (any affine algebraic set is the zero locus of finitely many polynomials)
By the Hilbert basis theorem, $k[x_1,\ldots,x_n]$ is Noetherian, so the ideal $I$ generated by $S$ is finitely generated, say $I = (g_1, \ldots, g_m)$. By definition $g_i = \sum_{j=1}^{n_i} h_{ij} f_{ij}$ for $h_{ij}\in k[x_1, \ldots, x_n]$, $f_{ij}\in S$, so collecting $\set{f_1, \ldots, f_r} = \sb{f_{ij}}{i=1,\ldots, n, \; j=1,\ldots,n_i}$, we have $I = (f_1, \ldots, f_r)$, so $Z(S) = Z(I) = Z(f_1, \ldots, f_r)$.