Evolution of a Molecular Shape Resonance along a Stretching Chemical Bond