Defendant sentenced to five years for violence linked to Iran attacks