Thousands of Rohingya Muslims from villages near the border with Bangladesh fled a military crackdown to the safety of the buffer zone along the border.