A 19-year-old man was sentenced to 18 years in prison for a 2013 shooting death at a high school graduation party.

Pima County Superior Court Judge Howard Fell sentenced Joseph Goodman on Monday.

Goodman pleaded guilty to manslaughter and aggravated assault in the shooting death of Miguel Altimirano , 21, in May 2013.

Prosecutors said Goodman went to the party armed with a weapon because an earlier dispute with the victim.

After a fight broke out between friends of the pair, prosecutors said Goodman fired his pistol several times at group of people.

“He’s lucky he’s not sitting here with two murder charges because he almost killed another person,” Deputy Pima County Attorney Julie Sottosanti said. Goodman shot Altimirano five times even while people were holding the victim back to prevent the altercation from continuing, she said.

Goodman’s attorney, Jason Rosell, said the description wasn’t accurate. He said Goodman was protecting his cousin who Altimirano and some friends had been bullying. Altimirano punched Goodman’s cousin in the face breaking his jaw, which started the fatal confrontation, Rosell said.

Goodman apologized for the shooting, saying he’s not a violent person.

In addition to prison, Goodman was ordered to pay more than $15,000 in restitution.

Contact reporter Patrick McNamara at 573-4241 or pmcnamara@tucson.com. On Twitter @pm929.