The Pentagon is deploying 5,200 active-duty troops to beef up security along the US-Mexico border in a bid to prevent a caravan of Central American migrants from illegally crossing the frontier, officials say.