Trump, senior officials and guests were unharmed after Secret Service officers rushed them to safety.
One officer was shot but protected by a bulletproof vest and is recovering, according to Trump.
Authorities identified the suspect as Cole Tomas Allen, 31, of California, and said the investigation is ongoing.