Swarms of flies are forcing people to keep windows shut as officials investigate a nearby poultry farm.