Substitute into the formula for the distance between two points: $\sqrt{(-2 - a)^2 + (3 - [-1])^2} = 6$.
Simplify and then solve for $a$.