Semismooth Newton method for gradient constrained minimization problem