Lie symmetries, optimal system, group-invariant solutions and dynamical behaviors of solitary wave solutions for a (3+1)-dimensional KdV-type equation