Spontaneous mirror-symmetry breaking in a photonic molecule