Far-infrared electrodynamics of thin superconducting NbN film in magnetic fields