A border Patrol agent was shot and killed north of the Arizona-Mexico border while trying to catch bandits who target illegal immigrants.