Resonance-enhanced x-ray multiple ionization of a polyatomic molecule