Alastor "Mad-Eye" Moody was not killed. In Harry Potter and the Goblet of Fire, Barty Crouch Jr. subdued the real Moody with the Imperius Curse, imprisoned him in a magical trunk, and used Polyjuice Potion to impersonate him for the entire school year at Hogwarts.
Crouch Jr.'s goal: manipulate the Triwizard Tournament to deliver Harry Potter to Voldemort. He maintained the disguise flawlessly—teaching Defense Against the Dark Arts, mentoring Harry, even fooling Dumbledore until the final reveal.
The real Moody was rescued after the Third Task. He survived the war, continued as an Auror, and died fighting Death Eaters in the Battle of the Seven Potters (Deathly Hallows).
So: no killing, no spell killed Moody. The "death" was an identity theft via Polyjuice, enabled by the Imperius Curse.