Theoretical study of third-order nonlinear optical response of semiconductor carbon nanotubes