The 57-year-old displayed what appeared to be a badge and told several people in the coffee shop that he was a police officer, authorities said.