A police officer in Idaho fatally shot a man who was in his own backyard on Monday after mistaking him for a suspect on the loose in the neighborhood and believed to be armed, authorities said.