There are these traps which are blue-light lamps that emit a small (for humans) amount of electricity, that is however enough to kill the small insects that are attracted to it.
On a summer night, you'll see it being full of insects after 1 hour of operation.