Over 50 Brazilian police officers clashed with the criminals in the northern area of Sao Paulo on Friday. Six suspected gang members were shot dead in the shooting and nine others escaped, one of whom was later arrested, a Press TV correspondent reported.
The gang was trying to get several cash machines located inside a supermarket to explode.
Three maintenance employees inside the supermarket were taken hostage during the operation but were released unharmed.
A wave of cash machine robberies has spread all over Brazil.
At least 93 cash machines have been blown up in the state of Sao Paulo alone since January 2011. ATM heists have left some poorer parts of Sao Paulo with scant access to cash.
Businesses that kept ATM machines on their premises have gotten rid of them for fear of attracting heists.
At least 15 criminals have recently been killed and 60 others arrested in clashes with the police over ATM robbery in the states of Sao Paulo, Rio de Janeiro, Minas Gerais, Parana, Mato Grosso and Piaui.