Study of the reaction π−A → K+K−π−A at 37 GeV/c