It is shown by computer simulation and in experiments that chaotic generation caused by the external optical feedback in a laser diode can be suppressed by means of a delayed optoelectronic feedback controlled by the injection current. The suppression of chaotic generation is realized for an AlGaAs/GaAs laser of the quantum wall structure. In the presence of the external optical feedback provided by the mirror placed at a distance of 1~mm the noise of optical intensity is of the oder of 10 μW, the single mode dominates in the spectrum, and its spectral width exceeds 600 MHz. The optoelectronic feedback controlled by the injection current reduces the noise by several times and narrows the generation line width down to 80 MHz.