Free-electron-driven beam-scanning terahertz radiation