Resonant absorption of electromagnetic radiation in a quantum channel due to the scattering of electrons by impurities