I think he died of a heart attack, it was quite a sad story.
“Alex’s death on 6 September 2007, at age 31, came as a surprise, as the average life span for a grey parrot in captivity is 45 years. His ast words (“You be good, see you tomorrow. I love you”) were the same words that he would say every night when Pepperberg left the lab.”