Two policemen were injured in the sword attacks and another was killed after being hit by the minivan which was trying to escape the compound of the headquarters, he added.
The attackers rammed a van into a gate at the Riau police station in Pekanbaru on Wednesday, before getting out and continuing the assault, national police spokesman Setyo Wasist confirmed.
Authorities in Indonesia say a police outpost on Sumatra Island was attacked Wednesday.
One of the dead men had a suspected bomb strapped to his body, the report said.
TV footage showed one man lying on the ground with a long sword next to his body.
Tourists and Visitors should think twice before traveling to Indonesia, especially Bali as a wave of terror attacks have swept the country.
Local police initially said they had killed three people and wounded another.
Indonesia's security forces have arrested hundreds of militants during a sustained crackdown that smashed some networks, and most recent attacks have been low-level and targeted domestic security forces.
The church bombing family were in the same religious study group as the two other families linked to the attacks, police said.
Police have been frequent targets of mostly low level attacks by local militants, including a 2017 suicide bombing at a bus station in Jakarta that killed three police officers.
The National Police's elite antiterrorism squad, Detachment 88, has captured several suspected terrorists in East Java, North Sumatra and South Sumatra following the incidents in Surabaya and Sidoarjo.