One line is parameterized by
\[\begin{pmatrix} -1 + s \\ 3 - ks \\ 1 + ks \end{pmatrix}.\]Another line is parameterized by
\[\begin{pmatrix} t/2 \\ 1 + t \\ 2 - t \end{pmatrix}.\]If the lines are coplanar (i.e. there is a plane that contains both lines), then find $k.$
First, we check if the two lines can intersect.  For the two lines to intersect, we must have
\begin{align*}
-1 + s &= \frac{t}{2}, \\
3 - ks &= 1 + t, \\
1 + ks &= 2 - t.
\end{align*}Adding the second equation and third equation, we get $4 = 3,$ contradiction.  Thus, the two lines cannot intersect.

So for the two lines to be coplanar, the only other possibility is that they are parallel.  For the two lines to be parallel, their direction vectors must be proportional.  The direction vectors of the lines are $\begin{pmatrix} 1 \\ -k \\ k \end{pmatrix}$ and $\begin{pmatrix} 1/2 \\ 1 \\ -1 \end{pmatrix},$ respectively.  These vectors are proportional when
\[2 = -k.\]Hence, $k = \boxed{-2}.$