A gunman entered a Catholic cathedral near Brazil's most populous city, São Paulo, killing five people, police say.
A Mass was being held when the attacker, carrying two guns, entered the Metropolitan Cathedral in the city of Campinas and opened fire.
The military police confirmed to the BBC that the death toll had risen from four to five. Four elderly people were also seriously wounded.
The attacker killed himself in the church. His motive is not yet known.
"It was frightful," witness Alexandre Moraes told Brazil's GloboNews channel. "He entered and shot randomly at people. They were all praying."
Campinas is an industrial city some 100km (62 miles) north-west of Sao Paulo.