Decade in jail for man who tried to kill best friend with kitchen knife