With United already down to 10 men following Rafael 's sending off for a second bookable offence , Rooney was replaced by defender John O 'Shea and had to watch from the bench as Arjen Robben struck a late volleyed winner to seal Bayern 's progress .