He was convicted during a court martial Monday at Bagram air base near Kabul .