Nigerian authorities have charged six military officers over an alleged plot to overthrow President Bola Tinubu.