The US president has been evacuated from the White House correspondents dinner in Washington after sounds resembling gunshots were heard.