A girl who was burned in an arson attack at a nursery school in Brazil earlier this week died of her wounds last night, bringing the overall death toll to nine people.

The four-year-old girl had been transferred to a hospital in Belo Horizonte, the state capital of Minas Gerais, 600km north of the small town of Janauba where the attack occurred, according to Folha de Sao Paulo, a local newspaper.

A security guard at the nursery sprayed his young victims with alcohol before setting fire to the building.

He died from burns a few hours later.

According to local authorities, he had suffered from mental health issues since 2014.

In total, eight four-year-old children were killed, along with a teacher aged 43.

Another 40 people were treated at three hospitals in the region.

Dozens gathered for the first funerals of victims at a cemetery in Janauba on Friday afternoon, according to an AFP photographer.

Small white coffins were opened for a few minutes as devastated family members wept.

The mayor of Janauba declared seven days of mourning, while Brazil's President Michel Temer expressed his solidarity with the victims of the "tragedy".