A shooting at a school near Sao Paulo on Wednesday left eight people dead, state military police said, before the two shooters turned their weapons on themselves.

"Eight people died at the scene, including the two assailants who committed suicide," a state military police spokesman said.

"Two injured people died after being taken to hospital."

Around 15 people were injured in the shooting at the Raul Brasil public school in Suzano, south-east Brazil.

Website UO1 said the two killers, "probably teenagers, entered the school shooting with their heads covered by a hood."

Sao Paulo state Governor Joao Doria said four children and two members of staff were among the dead.

He said it was not yet known whether the two assailants were former pupils at the school.

Worried family members congregated outside the school alongside firefighters and security services, an AFP photographer at the scene said.

The attack took place at around 9.30 am during a break period for some students, authorities said.