An exactly soluble three-body model of resonance scattering