After hours of heavy shelling, Syrian troops recaptured a border town Thursday in what activists said was a government attempt to stem the flood of people fleeing the country's civil war.