Can you put into words, on this thread, an explanation of the thought-processes involved?
Clearly, you are going to either have to face up to your shunned friend, or never dare speak to him again.
Since I assume you don't want the latter, you going to have to have a damn good explanation when you pluck up courage to do the former.
And I would do it as soon as possible, if I were in your position.
In any event, whether or not you can explain to him why you did what you did, the key thing to do is to apologise unconditionally, and wait to be forgiven.