Interaction of semiconductor metasurfaces with short laser pulses: From nonlinear-optical response toward spatiotemporal shaping