A selicho in Nusach Ashkenaz for 10th Teves starts אזכרא מצוק אשר קראני
and contains a phrase, "לו חץ בְלִבִי יָרִיתִי" - - "would that I could shoot an arrow through my heart."
This seems an unusual phrase. I see it as qualitatively different from Iyob 3 (2) bewailing his birth "Would the day in which I was to be born be lost” where he does not actively contemplate death.
Are there other examples of Jewish texts (not necessarily Biblical) where the author describes how he wishes to actively arrange his own demise?