Amaimon's familiar, the giant worm Shima, does not die in either the anime or manga of Blue Exorcist. He remains Amaimon's companion and appears in later events. You may be confusing him with another character's death or a different event; if you have a specific scene in mind, provide more details.