Dynamic optical response of solids following 1-fs-scale photoinjection