The prince 's commanding officer in Afghanistan , Brigadier Andrew Mackay , said he had " shared the same risks ( and ) endured the same austerity " as his colleagues and had " acquitted himself with distinction . "