Divisibility of determinant.
Adding to the second row $100$ hundred times the first one and $10$ times the third one we get:
$$\left|\begin{matrix} x & 3 & 1 \\ 7 & 6 & z \\ 1 & y & 2\end{matrix}\right|=\left|\begin{matrix}x & 3 & 1 \\ 100x+10+7 & 300+10y+6 & 100+20+z \\ 1 & y & 2\end{matrix}\right|.$$
Now the elements of the second row are all multiple of $k$ by assumption. Since all the elements in the determinant are integer numbers the determinant must be a multiple of $k.$