According to Osho, in the manifest world nothing is accidental: death, too, is the ripening of one’s own karmic chain. Even being killed by Krishna is not Krishna’s intention; from his side it is utterly causeless, from ours it issues from past causes. Thus who we meet, love, fight—and when we die—unfolds from our total being.
Your death comes when your own past actions ripen; enlightened beings don’t cause it—they simply are, while your karma brings the event.