Man confesses to murder of best friend