Brazil’s attorney general charged the former president Jair Bolsonaro with trying to overturn the 2022 elections.