Buffalo cop at the heart of community policing retires