Pulse-shape discrimination applied to the scintillating-target technique