I have no clue and this is a complete guess but is it possible it's some kind of parasitic fly that is laying eggs in the roaches killing them and producing the maggots.