Eh. I am not sure if this is possible, I asked a few people I know and they all point to necromancy, but then their warnings were "It depends on what your definition of life is". My answer, and I will put it just be straight about it. Life and death are part of nature, and magic should never be used to tip the balance in either direction. Trying to restore life to something would be violating natures laws of mortality, everything dies. I would only imagine, that if it is even possible, the cost to restore life at all no matter the creature would be a cost no mortal being could pay.
As others have said, there is no bringing things back to life. If the bug was particularly special to you, you might be able to work with it's spirit, but that would take a fair amount of practice and studying.