A police officer in Michigan was terminated on Thursday after a prospective homebuyer who had been touring the officer’s home posted a picture of a framed Ku Klux Klan application he had seen there on social media, sparking an internal investigation.