Most people only know about how Ekalavya, the Nishada prince, was rejected by the Pandavas' teacher Dronacharya and then willingly cut off his own thumb at Dronacharya's request. What's not as well-known, however, is how Ekalavya died. The story I've always heard goes roughly as follows. The Nishadas were loyal to the evil king Jarasandha. So when Bhima killed Jarasansha with Krishna's help, Ekalavya wanted to take revenge on Krishna. So he tried to attack Dwaraka, but Krishna was able to kill him.
Here's how Wikipedia describes it:
He was later killed by Krishna when he was on his campaign to destroy every Yadava in Dwaraka and Kuntibhoj for avenging Jarasandha's demise.
My question is, what scriptures describe this story of Krishna killing Ekalavya after Ekalavya tries to avenge the death of Jarasandha?
The fact that Krishna killed Ekalavya is mentioned multiple times in the Mahabharata. Here is how the Udyoga Parva of the Mahabharata describes it:
Ekalavya, the king of the Nishadas, always used to challenge this one to battle; but slain by Krishna he lay dead like the Asura Jambha violently thrashed on a hillock.
And in this chapter of the Drona Parva of the Mahabharata, Krishna tells Arjuna that he killed Ekalavya for Arjuna's benefit:
O best of men! for thy good, the Nishada's son also, of prowess incapable of being baffled, was, by an act of guile, deprived of his thumb by Drona, assuming the position of his preceptor. Proud and endued with steady prowess, the Nishada's son, with fingers cased in leathern gloves, looked resplendent like a second Rama. Undeprived of thumb, Ekalavya, O Partha, was incapable of being vanquished in battle by the gods, the Danavas, the Rakshasas, and the Uragas (together). Of firm grasp, accomplished in weapons, and capable of shooting incessantly day and night, he was incapable of being looked at by mere men. For thy good, he was slain by me on the field of battle.
But are there any scriptures describing the specific circumstances of Ekalavya's death?