NORTH OGDEN, Utah — The mayor of a Utah city was killed during an attack in Afghanistan while he was serving with the state's National Guard, the town's temporary mayor Brent Chugg confirmed to CBS Salt Lake City affiliate KUTV. North Ogden Mayor Brent Taylor died Saturday in an apparent "insider attack" in Kabul, the capital of Afghanistan.

Another U.S. service member is being treated for wounds sustained in the attack, American military officials said.

The Utah National Guard has identified the service member killed as a member of the Guard. The Guard member's name is being withheld pending notification of next of kin.

Get Breaking News Delivered to Your Inbox

But Utah Lt. Gov. Spencer J. Cox wrote on his Facebook page Taylor, 39, has been killed.

North Ogden Mayor Brent Taylor was killed in an "insider attack" in Afghanistan. North Ogden City

"Devastating news. North Ogden Mayor Brent Taylor was killed today while serving in Afghanistan," Cox said. "I hate this. I'm struggling for words. I love Mayor Taylor, his amazing wife Jennie and his seven sweet kids. Utah weeps for them today. This war has once again cost us the best blood of a generation. We must rally around his family."

Utah Sen. Orrin Hatch issued a statement Saturday about Taylor's death on Twitter. "Brent was a hero, a patriot, a wonderful father, and a dear friend. News of his death in Afghanistan is devastating. My prayers and love are with Jennie and his 7 young children. His service will always be remembered," Hatch said.

Republican Senate candidate Mitt Romney said he is "heartbroken with the tragic news."

Heartbroken with the tragic news of Major Brent Taylor’s death by gunfire in Afghanistan; a father of 7 small children, a city mayor, and a proud member of the Army National Guard. Another unmeasurable price is paid for freedom. https://t.co/V7scNBDJ3X — Mitt Romney (@MittRomney) November 3, 2018

Utah Gov. Gary Herbert plans to hold a news conference on Sunday to discuss the death.

Taylor was deployed to Afghanistan in January with the Utah National Guard for what was expected to be a 12-month tour of duty. Taylor, an officer in the National Guard, previously served two tours in Iraq and one tour in Afghanistan.

In what appeared to be his last Facebook post, Taylor shared pictures on Oct. 28 of Afghans voting and urged fellow Americans to vote.

"As the USA gets ready to vote in our own election next week, I hope everyone back home exercises their precious right to vote," he wrote. "And that whether the Republicans or the Democrats win, that we all remember that we have far more as Americans that unites us than divides us. 'United we stand, divided we fall." God Bless America."

At the time of his deployment in January, Taylor told local media that, as an intelligence officer, he will be assigned to serve on an advisory team training the staff of an Afghan commando battalion.

"Right now there is a need for my experience and skills to serve in our nation's long-lasting war in Afghanistan," he said. "President Trump has ordered an increase in troops, and part of the new strategy focuses on expanding the capabilities of the Afghan commando units."

Taylor became mayor of North Ogden, a city of about 17,000 people 46 miles north of Salt Lake City, in 2013.

More than 2,400 Americans have been killed in the 17-year-old war. Earlier this year, Army Command Sgt. Maj. Timothy Bolyard was shot dead in an insider attack, killed by one of the Afghan security members he came to Afghanistan to train.

That followed another insider attack that claimed the life of 20-year-old Army Cpl. Joseph Maciel in July.