Transition of laser-induced terahertz spin currents from torque- to conduction-electron-mediated transport