Self-consistent theory of time-resolved four-wave mixing