Sphere
Spheres, e, are a class of monster in Nethack. This class is made up of monsters that act like "living mines", always exploding upon death. They will self-destruct and harm you; they also blow on you if you kill them in melee. Dextrous players can sometimes dodge the explosions completely, while players with the correct resistance might not feel harm from the blast (though their inventory might still take damage).
Monsters in this class:
Gas spores e are different to spheres in that they will never attack you and explode only if attacked. However, gas spores explode in a 3-by-3 square, thus even if a character survives the blast, a nearby pet might die.
Black lights and yellow lights, y, are not spheres, but they self-destruct in a similar manner.