Discussions are under way over security for the King's upcoming US visit after gunshots were fired at a dinner with Donald Trump, Buckingham Palace has said.