A gunman who killed one person and injured two others at the university in Norfolk, Va., had previously been convicted on terrorism-related charges.