iStock/Thinkstock(TUCSON, Ariz.) -- A deputy U.S. Marshal was shot and killed in the line of duty Thursday evening in Tucson, Arizona.

The marshal was shot while trying to serve a felony warrant to 26-year-old Ryan Schlesinger at a residence in the city's Miracle Manor neighborhood around 5:30 p.m. local time. The marshal was with other service officers at the time, authorities said.

Tucson police officers responded to the scene shortly after the shooting and surrounded Schlesinger's one-story home. The suspect ultimately surrendered and was taken into custody without incident or injury, authorities said.

The wounded marshal was rushed to a local hospital where he died. Authorities have not yet released his name.

"This is a tragic night for law enforcement in Tucson and obviously across the state of Arizona," Tucson Police Chief Chris Magnus said at a press conference Thursday. "Our hearts go out to this marshal's family."

The police chief said serving warrants can be "very dangerous" work.

"You never really know how somebody is going to react to that," he explained. "Obviously, a warrant still means that somebody has their day in court but there are times when the individual being served doesn't see it that way and we really don't know what's going through their head when they make a decision to do something like this."

Federal agencies are working with the Tucson Police Department to investigate the deadly shooting.

"It's very tough and it’s hard to make any sense of it, but that’s what the investigation is for and we’ll know more in the upcoming days and weeks," Magnus told reporters when declining to provide more details on the incident.

Arizona Gov. Doug Ducey took to Twitter to express his "deepest condolences" to the slain marshal's family and fellow law enforcement officers.

Copyright © 2018, ABC Radio. All rights reserved.

More From 610 KONA