This is a creature native to the Discworld.

Due to the high magic fields on the Disc, the butterfly has evolved to be able to use the Butterfly Effect in its own defence. It can, using aforementioned effect, generate small, localised rain/thunder/snow storms directly above it's aggressor. The butterfly may be found in several of the books (IIRC), and also features in the first Discworld game.