A Liouville-type theorem for an elliptic equation with superquadratic growth in the gradient