The film is Mars Attacks! (1996), a satirical sci-fi comedy.
The Martians are large, bug-eyed creatures who invade Earth. Among their weapons is a ray gun that transforms humans into insects.
Other films feature insect-like aliens, but Mars Attacks! is the most famous for this trope.