For the first time in decades, a presidential candidate in Brazil has suffered an assassination attempt.