Watching the formation and reshaping of a Fano resonance in a macroscopic medium