Accused Benghazi mastermind convicted of terrorism