A model has been proposed for calculating the polarizability of a metal nanoparticle in a composite consisting of a dielectric matrix and monodisperse nanoparticles with more exact allowance for the influence of neighboring particles going beyond the Maxwell-Garnett approximation. The main attention has been focused on the imaginary component of the polarizability, which determines electromagnetic radiation absorption by a nanoparticle in the dipole approximation. It has been shown that the absorption may be noticeably enhanced or diminished depending on the incident radiation frequency.