Pyrethrin-based insecticides are best for controlling indoor fly infestations. Make sure you use a product that is specifically for indoor use, ventilate the space well, and follow all of the instructions carefully before using an insecticide.