Permethrin and pyrethrum are two different insecticides that will kill maggots when the maggots come into contact with the chemicals. Some other means of killing maggots include pouring boiling water over the insects and sprinkling Diatomaceous Earth around the infested area.
Many people use baking soda or moth balls to help with a maggot infestation, but the truth is that these solutions only deter the maggots, and do not actually kill them. Insecticides can be harsh chemicals that may negatively affect the environment, but pyrethrum is a natural insecticide that is made from chrysanthemum flowers. It will kill maggots, but will not harm the surrounding soil, plant life or wildlife. Diatomaceous Earth is believed to scratch the maggots and cause dehydration.