We first calculate the equation of the plane containing $(x_2,y_2,z_2)$ and parallel to the one given. The equation is
$$ a\,(x - x_2) + b\,(y-y_2) + c(z-z_2) = 0. $$
The distance you are looking for is the distance between $(x_2,y_2,z_2)$ and the intersection point between this plane and the line. To calculate this point, it helps to write the equation of the line parametrically:
$$x = a_1 s + x_1, \quad y = b_1 s + y_1, \quad z = c_1 s + z_1, \quad s \in \mathbb R.$$
Inserting these expressions in the equation of the plane, we find
$$a(a_1 s + x_1 - x_2) + b(b_1 s + y_1 - y_2) + c(c_1 s + z_1 - z_2) = 0,$$
from which we have:
$$ s(a\,a_1 + b\,b_1 + c\,c_1) = a\,(x_2 - x_1) + b\,(y_2 - y_1) + c(z_2 - z_1). $$
Assuming that the expression between round brackets is nonzero, i.e. assuming that the vector normal to the plane is not orthogonal to the direction of the straight line,
$$ s = (a\,(x_2 - x_1) + b\,(y_2 - y_1) + c(z_2 - z_1))/(a\,a_1 + b\,b_1 + c\,c_1).$$
Plugging back in the equation of the line, the intersection point can be calculated, and then the distance.