Complex sentence: He served in the militia until 1866 when he appointed to serve as a U.S. Indian Agent in the United States Territory of Arizona.
Split into simpler sentences: He served in the militia until 1866. That same year he appointed to serve as a Indian Agent in the United States Territory of Arizona.