Temporal dynamics of optical-to-terahertz conversion in electro-optic crystal