The judge said the suspect and the victim, Michael Hunter, 36, had known each other for more than a decade and were friends.