One-dimensional model of three-particle resonances