More than 2,339 people have been evacuated from flooded areas in Ukraine after the collapse of a dam reportedly bombed by Russian forces earlier in the week.