If I recall correctly, that was done in Panama by the canal builders; one of the reasons they were successful was because they wiped out mosquitoes in the region, and protected the workers from malaria.
Their method was to put a bit of gasoline in all of the swamps. The thin layer of gas on the water surface killed the larvae. It probably caused lots of other environmental damage too though, so a different approach would be needed today.