The night-time operation was announced by US President Donald Trump on social media hours after the attack.