Generation of picosecond pulses in an injection laser with an external selective resonator