A former elementary school teacher was sentenced to four years in prison after prosecutors allege he downloaded videos of children being sexually abused.