An error estimate for an approximation of a parabolic variational inequality