Thousands flee Ugandan rebel attack