My guess would be sewer flies which breed in most sewer lines. When we leave the dump valve open, they can access the gray tank and may get into the black tank even during dumping. They're right at home in an environment of moist solid waste, just like you'd find in your black holding tank. A spray can of insecticide will provide temporary relief. But the eggs might not be reached. An enzyme-based treatment for the black tank would be my next step. As a last resort, and one I have used once with a severe infestation, is bleach. I filled the black tank with water mixed with 8 oz. of bleach and let it sit for a couple or three hours. After I dumped, I then refilled with just water as a flush and dumped again. Problem solved.