Police in Brazil say 10 people were killed in a shooting between alleged robbers and police in the outskirts of the country's biggest city.

Police commander Mario Alves da Silva told journalists that the incident took place in the city of Guararema, outside Sao Paulo, Thursday afternoon.

The police commander said at least 25 suspected criminals were involved in the robberies.

He did not confirm if those killed were all suspected criminals, but said no policemen were killed in the shootings.

Footage obtained by TV Globo shows two bank branches with their windows smashed.