From Fox News:

Multiple sources confirmed to Fox News Digital the male gunman who allegedly opened fire with a pistol Saturday near the White House in Washington, D.C., and was fatally shot by the U.S. Secret Service, has been identified as Nasire Best, 21, of Maryland. At about 6 p.m. local time, the suspect allegedly approached a Secret Service checkpoint near 17th Street and Pennsylvania Avenue NW, removed a weapon from his bag and began firing at posted officers, a Secret Service spokesperson said.
Best, who allegedly had prior encounters with the Secret Service and a history of mental health issues, fired about three shots toward the executive mansion before he was taken down by Secret Service agents, according to a senior administration official with direct knowledge of the incident.