Michael Hartmann was preparing to leave for work when he was shot and killed in his backyard, a prosecutor said.