Well, his "roommate" came after him with a rifle, so it just makes sense that he'd beat the guy to a pulp with a sledgehammer. Just self defense.
Wonder if methamphetamine was involved, or alcohol?
Chances of the latter are very high.
Actually, that would make it more understandable.