I don't know what your yellow maggots, there in the UAE are, but most likely some kind of fly.
A common one we get in compost piles/ bins here is the black soldier fly. There's a picture of it at the top of this page:
but it isn't yellow, it's kind of greyish brown. So yours would most likely be some other kind of fly.
I'm sorry, but composting is a natural process, which in nature is in large part carried on by micro-organisms AND macro-organisms including earthworms, fly larvae, pill bugs, cockroaches and other detritovores.
I did a worm bin indoors last winter. I filled it with damp shredded paper, some fall leaves and put some earthworms in and started feeding them kitchen scraps. After awhile the black soldier fly larvae pictured above and a few other small creatures, appeared in it. I don't know where they came from, since the bin was indoors, but maybe they were eggs on the fall leaves. Anyway, it would be unlikely and difficult to do composting without some kind of small creatures, they are part of the process. You don't need to be afraid of them. I've never heard of anything in a compost pile that would harm people. They are in the pile, because they are detritovores, that is they live on dead, rotting stuff and help break it down, so they aren't interested in you (at least as long as you stay alive!