A Marine whose request to wear his uniform at his high school graduation last year was refused by school officials has been killed in Afghanistan.

Brandon Garabrant, 19, was one of three Marines killed by a roadside bomb this week, MyFoxBoston.com reported.

Garabrant gained fame last year when he asked to wear his dress blues to his graduation from ConVal Regional High School. But the school's principal, citing regulation, told him he had to wear the traditional cap and gown.

His family was notified of his death on Friday, WMUR.com reported.

On Friday, ConVal Regional High School principal Brian Pickering said the school community was "shocked and deeply saddened" to hear of his passing.

"We are incredibly grateful for his service to our country,” he said.

Members of the Temple Volunteer Fire Department, where Garabrant was a member, gathered Friday to lower the flag outside the station to half-staff and say a prayer, WMUR.com reported.

“He absolutely loved doing what he was doing,” said Temple Volunteer Fire Department Chief George Clark told the outlet. “He knew the sacrifice and he was still willing to do it and it was a total shock to hear the news.”

Petersborough Police Chief Scott Guinard told WMUR.com that Garabrant was a close friend with his son, who was a similar age and also interested in becoming a Marine.

"The three best words to describe him: A young gentleman," Guinard said. "He was a young gentleman who I am extremely proud of and who will be sorely missed by all."

"The entire State of New Hampshire is devastated by the tragic loss of Lance Corporal Brandon Garabrant, who was bravely serving his nation in Afghanistan," New Hampshire Gov. Maggie Hassan said in a statement on her Facebook page. “As a volunteer firefighter and dedicated Marine, Lance Corporal Garabrant was committed to serving his fellow citizens, and he was tragically taken from us far too soon. It is our responsibility as Granite Staters and Americans to come together to support his family and his community."

Click here to read more from MyFoxBoston.com and WMUR.com.