FAIRBANKS, Alaska — An Alaska man who set a car on fire as people were inside will serve seven years in prison.

Dexter Reedy, 28, reached a plea deal with the state Wednesday, the Fairbanks Daily News-Miner reported (http://bit.ly/2soNyh7).

He was facing two counts of attempted murder, first-degree arson, two counts of third-degree assault, reckless endangerment and fourth-degree weapons misconduct.

He pleaded guilty to one count of first-degree arson. He received a nine-year sentence with two years suspended and three years of probation.

The other charges were dismissed.

Reedy is also required to get anger management counseling and stay away from alcohol and illegal drugs during his probation period.

“If we’d gone to trial and lost, the public would have been vulnerable to Mr. Reedy again because he would have to be released immediately. This agreement strikes an appropriate balance,” said Assistant District Attorney Joe Dallaire in an email.

Reedy was suspected of threatening to kill one man and starting a fire on a truck as a couple was inside last year, according to charging documents. The victims told Alaska State Troopers that Reedy had poured a can of gasoline on a woman’s truck and lit it on fire.

The people were able to escape the vehicle unharmed.

Reedy continued to chase the couple and the man on foot until he got in a truck and tried to flee the scene, according to charging document. He was later found inside a house with a knife, handgun and drug paraphernalia, police said.

Reedy was on probation for a misdemeanor theft charge during the Feb. 23 arson incident, according to the report. As part of the plea agreement, a previously suspended $500 fine related to the theft was brought back.

Information from: Fairbanks (Alaska) Daily News-Miner, http://www.newsminer.com