The capture likely ends the legendary career of the farmer who rose from poverty in the mountains of the state of Sinaloa and built an empire of cocaine and marijuana that made him a billionaire and caused much of the violence that has killed tens of thousands of Mexicans in the last decade.