On 8 August , when he was in Beijing for the start of the Olympic Games , he had spoken to US President George W Bush soon after hearing of the attack by Georgian troops on the South Ossetian capital - but the United States had failed to intervene .