That should have some consequence (not too harsh, they don't need to fire the guy). I don't mind police having a sense of humor, but in lights of the recent issues with police violence and the fact that his comment was racially insensitive, this isn't really acceptable.
As a police officer, you should be a moral example, this is a bad example.