Rebels capture border town, refugees flee