Two teen brothers pleaded guilty Thursday to killing a man who tried to stop a crime spree.

Charlie McDaniel, 17, and Isaac McDaniel, 16, were accused of shooting and killing Anthony Brooks, 50, outside a Shell gas station on Campbellton Road last November.

In court on Thursday, the brothers accepted a plea deal and admitted to four crimes: participation in a criminal street gang, receiving stolen property, possession of a firearm during the commission of a crime and murdering Brooks.

According to officials, Brooks recognized the pair as the suspects responsible for a number of car thefts at the location. When the 50-year-old approached the brothers and threatened to call police, the two attacked him and shot him.

RELATED | Teens charged with murder implicated in 100 crimes

District Attorney Paul Howard said one of brothers shot Books three times outside the store. The last shot came as Brooks was crawling on the ground trying to get back into the store.

Brooks' mother, Ellen McFarland, talked about his death during the plea hearing.

“On a daily basis, I must live my life never having closure," she said. "There is nothing worse than an incomplete chapter in one’s life, which is what I have left as a result of losing Anthony to unnecessary gun violence. When all Anthony ever wanted to do was keep violence from his family, the neighborhood that he grew up in, loved, and strived to protect."

Both brothers received sentence of 45 years, with 18 to serve in prison with no eligibility for parole.

WATCH BELOW: Fulton ADA describes the murder

Residents of the community who knew Brooks told 11Alive he was the kind of person who would always lend a hand. They say Brooks would often cut the lawns of elderly people in the community or help with repairs at a local barber shop in the same area.

Police said the brothers got away in a stolen vehicle after the murder, but later turned themselves in. The district attorney's office said that the brothers have been arrested 16 times by metro Atlanta police since 2014.

After their arrests, Fulton County authorities took action to reduce juvenile crimes at gas stations.