I'd guess it's a larva of one of the carpet beetles (Dermestidae), some of which are synanthropic. They probably would be interested not in live flies, but in their food and cadavers.
Its appearance seems to be very characteristic - someone would be able to identify it to generic or even specific level.