In July 2009 , after months of harassment against his opponents and media critics , BAKIEV won re-election in a presidential campaign that the international community deemed flawed .