A police officer in Hangzhou said the man's wife had an affair with their mutual friend