i had similar contamination in other mediums, the reason of their presence is a mother fly that had put her eggs next to your culture or under the lid, because of the density of the bacteria and the co2 emissions produced by them.
as these larvae crawl into the medium they might eat allot of bacteria, or inhibit their growth.
if you cover your petri dish with tinfoil or parafilm it might help but think about the gases exchange.