Leaders across the world have condemned the shooting at the White House Correspondent's Dinner and voiced relief that President Donald Trump and the dinner's guests, which included many foreigners, were safe.