At about 11 p.m. Tuesday, Agent Brian A. Terry confronted an armed group in a rural area about 15 miles north of the U.S.-Mexico border when at least one person shot the agent, officials said.
Terry, 40, was transported to a hospital, where he died early Wednesday morning, officials said.
Four people from the group have been detained and law enforcement officers are searching the area for a fifth person, officials said. Numerous vehicles are swarming the area and helicopters are flying overhead. The FBI is assisting in the investigation.
The last Border Patrol agent shot and killed in the line-of-duty was Robert Wimer Rosas Jr., 30, in a rural area east of San Diego, California. On July 23, 2009, Rosas was shot multiple times after exiting his vehicle near the U.S.-Mexico border. Seven people were arrested, including the 17-year-old shooter, who was sentenced to 40 years in prison.
The last Border Patrol agent to die while working in Arizona was Michael V. Gallagher. On September 2, 2010, the agent's truck was struck by a drunk driver who ran a stop sign on the Tohono O'odham Reservation near Casa Grande, Arizona. The truck overturned and Gallagher, 32, was ejected. The drunk driver has been charged with voluntary manslaughter, DUI and other charges.
Terry is the 31st Border Patrol agent shot and killed while working, according to The Officer Down Memorial Page website. A total of 111 agents have died in varying circumstances since 1919.