Top military officer opposes general's demotion