(CNN) A gunman opened fire on a church in the Brazilian city of Campinas on Tuesday, killing four people before turning the gun on himself, CNN affiliate Record TV reported.

Police earlier said the shooter killed five, but have scaled that number down to four.

The victims include three men and a woman, in addition to the gunman, Record TV reported. Police initially said nine people were injured but have revised that number down to four. One person is in critical condition.

The gunman has been identified as 49-year-old Euler Fernando Grandolpho, a resident of the neighboring city of Valinhos, according to state-run news agency Agencia Brasil.

The shooting occurred in the Metropolitan Cathedral, according to a statement from local police to Record TV. The shooter entered the church around 1:25 p.m., according to state-run news agency Agencia Brasil. The motive is unknown.

Read More