You don't need to use a diode; a capacitor will limit the open-circuit energy from the relay coil to a voltage usually not greater than twice 9V.
Lets say your inductance is 1 henry and the coil resistance is normally 750 ohm. The current into the 1 henry is limited to 12 mA and therefore the coil stores an energy of 1 x 0.012 x 0.012 / 2 = 72 uJ.
If all of this is transferred to a 10uF capacitor the voltage increase above 9V on the capacitor is: -
V = \$\sqrt{\dfrac{72uJ \times 2}{10 uF}}\$ = 3.8 volts
i.e. the 9V, when disconnected by the switch, will create a peak voltage of 12.8 volts on the capacitor and it will likely but much less than this because of the series resistance of the coil burning off energy in the transfer of micro joules to the capacitor.
To address Spehro's comment a small values resistor in series with the capacitor can reduce inrush when activating the relay.