Coherent forward four-wave mixing of ultrashort radiation pulses in a resonant medium