Secret Service agents shot an armed man from Indiana near the White House in the US capital after a confrontation. President Trump was in Florida at the time.