Mark 9: 13, Prophecy of Elijah's rejection

Mark 9:13 (ESV) reads:

13 But I tell you that Elijah has come, and they did to him whatever they pleased, as it is written of him.”

Jesus is clearly referring to John the Baptist, and the prophecy is about Elijah (Malachi 4:5-6). But where is it prophesied that he would be killed/abused? Some say by means of type (Jezebel was out to get Elijah), but that seems a bit shabby to me. Any ideas?

Discussion