Maj. Robert J. Marchanti II, 48, was buried Tuesday at Arlington National Cemetery.
Marchanti, a 25-year member of the Maryland National Guard, was one of two officers killed last month in Afghanistan. Violence erupted in Kabul, where Marchanti was stationed, when it was revealed that copies of the Quran had been burned at a NATO base in Bagram.
The Taliban claimed responsibility, saying the deaths were punishment for burning the Muslim holy book.
Gov. Martin O'Malley ordered U.S. and Maryland flags flown at half-staff Tuesday in Marchanti's memory.
Marchanti taught in the Baltimore County public schools and lived in Gardenville.
The Associated Press contributed to this article.