Shots were fired as US President Donald Trump attended a media gala in Washington on Sunday, with the gunman detained at a screening area just outside the hotel ballroom where hundreds of guests had gathered.