Infrared photometry of the inner regions of the dwarf irregular galaxy NGC 3109