Thermal mechanism of laser induced THz generation from a metal surface