Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A U.S. service member was killed in an apparent "insider attack" in eastern Afghanistan on Monday, military officials said.

The slain soldier was identified Tuesday by the Department of Defense as Command Sgt. Maj. Timothy A. Bolyard, 42, from Thornton, West Virginia. The statement said he died from small arms fire in Logar Province, and that the incident is under investigation. Bolyard was assigned to 3rd Squadron, 1st Security Force Assistance Brigade, Fort Benning, Georgia.

Bolyard was shot by a member of the Afghan National Police at Camp Maiwand, Resolute Support spokesman Martin O'Donnell said Wednesday. The shooter fled but was captured and detained by Afghan security forces, O'Donnell added.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Our thoughts and prayers are with the Family of CSM Timothy Allen Bolyard of the 1st SFAB who died September 3, 2018, in Logger Province, Afghanistan. pic.twitter.com/OetTm251B2 — US Army Fort Benning (@FortBenning) September 5, 2018

Another American service member was wounded in the attack, according to a statement from Resolute Support, the NATO-led mission that trains and advises Afghan forces. That wounded service member is stable, officials said.

"The sacrifice of our service member, who volunteered for a mission to Afghanistan to protect his country, is a tragic loss for all who knew and all who will now never know him," Resolute Support and U.S. Forces-Afghanistan Commanding General Austin Scott Miller said in a statement. "Our duty now is to honor him, care for his family and continue our mission."

Officials said that the U.S. service member who was killed was the sixth American killed in Afghanistan in 2018.

In July, another U.S. service member, Cpl. Joseph Maciel of South Gate, California, was killed and two others were wounded in what officials described as an apparent insider attack.

A member of the Afghan security forces carried out that attack at Tarinkot Airport in the southern province of Uruzgan, according to the Taliban, which did not claim responsibility.

There have also been insider attacks against Afghan forces. A Pentagon report in June said there were 47 so-called "green-on-green" attacks, or incidents where Afghan soldiers turned on their own side, in 2018.

The report said that insider attacks against Afghan national defense and security forces increased by 50 percent from the same period last year.

CORRECTION: (Sept. 4, 2018, 1:16 a.m.): An earlier version of this article misidentified the Resolute Support mission commander. He is Gen. Austin Scott Miller, not Gen. Scott Miller.