Delineating effects of tensor force on the density dependence of nuclear symmetry energy