Depends on which story you believe. Matthew says he hung himself. Acts says he fell and busted his head open in a more accidental way. And then there's a few other accounts that aren't in the biblical canon.
My account is that after his successful quest the theif was awarded his loot for betral of the wizard which was enough to buy a pretty sick dagger and some torches.