Thousands of supporters of former President Jair Bolsonaro stormed three government buildings, saying the election was rigged.