The insects walked underwater for hours, a step toward search-and-rescue swarms.