A man will spend the rest of his life in prison for killing a Maricopa County Sheriff’s deputy several years ago.