Self-phase modulation of a single-cycle THz pulse