THz generation in a photo-activated periodically-biased semiconductor