Optical near-field resonances in the system of interacting nanoparticles