This happened to me not long ago. I asked a girl out that I was really interested in and she told me that she wanted to just be friends. If you did anything that might have lead the guy on or signaled to him that you were interested (like my girl did or at least I really felt like she did) then that is kind of a problem for guys because you are sending mixed messages. That ultimately comes down to a trust issue and maybe your guy just feels like you might be trying to use him again to get attention or something. He probably was also attracted to you sexually and it probably hurts him that you are not attracted to him in the same way. Just give it time and he will eventually get over you and then hopefully you can be friends again.
But if the friendship is something that you really value then it is up to make the effort to try and get back to where you were as friends because he already took a really big step by asking you out.
When a guy hurts deep inside "Sad" he turns that into anger so as if to act tough and sometimes if he can't get what he wants he doesn't want to be around that person at all. Because it hurts him. You've got to understand we guys are strong physically but some aren't strong mentally. And sometimes guys think if she doesn't like me why do I have to be around her at all? Some reason if "some" guys can't have the girl liking him sexual and mentally its like why be friends? This girl I like doesn't like me physically but she likes me mentally so I'm content. Not all guys are like this so be mindful of what you can do to others.
When people are hurt or disappointed they need time. Give this guy time. If you are truly a good friend you will be able to be understanding and considerate of his needs. It's okay that you don't like him, but it's also okay that he needs time to take care of himself and heal his ego and if he chooses to spend some time away from you that's okay.
I would be careful about making assumptions - does he really hate you? Or do you feel like he hates you because he's not around? - I would guess that it's more the opposite - he liked you a lot and he still does like you a lot - you don't like him so he's hurting inside. He maybe figures - the only way to get this girl out of my head is to be away from her and spend time with other people and do other things.
It sucks. But it's okay. You guys will both get through this.
Rejection is hard to deal with. I think everyone deals with it in different ways. Maybe he just feels a little silly right now since you didn't like him like he hoped you would. Give him time, he might come through it.