According to one study, scientists were able to train moths to associate certain smells with food. Learn more on this Moment of Science.
This process is called osmosis; it dilutes the sugar-water inside the cells. But all the water coming in raises the pressure inside the cells so that eventually, the cell walls burst.