Man acquitted of most charges in shooting death of friend