Indonesia has been rocked by another attack on police as officers shoot dead four people armed with a suicide vest and samurai swords.

The suspected militants slammed a minivan into a gate at Pekanbaru police station on the Indonesian island of Sumatra before attacking officers with swords on Wednesday.

One police officer was killed and several more were wounded before authorities shot dead three alleged terrorists.

The bodies of two attackers who were shot and killed are seen at the entrance of a police station in Pekanbaru, Indonesia on Wednesday (pictured)

Police remove the bodies of attackers who were shot and killed at the entrance of the station (pictured)

The attack follows a string of terror attacks on police officers and several Christian Churches across Indonesia.

On Sunday, a family of six - including girls aged nine and 12 - staged suicide bombings of three churches during morning services in Surabaya, killing 18 including the bombers.

On Monday members of another family blew themselves up at a police station in the city, wounding 10.

'There were five people on two motorbikes. One of them was a little kid,' national police chief Tito Karnavian said.

'This is one family.'

An eight-year-old girl from the family survived the attack and was taken to hospital, while her mother, father and two brothers died in the blast, he said.

Indonesian policemen secure the site outside the police headquarter in Pekanbaru, Riau following attacks on May 16

Indonesian policemen examine a car used by attackers outside the police headquarter in Pekanbaru, Riau

Indonesian policemen secure the site outside the police headquarter in Pekanbaru

Indonesian policemen remove the body of an attacker at the police headquarter

The suspected militants slammed a minivan into a gate at Pekanbaru police station (pictured) on the Indonesian island of Sumatra before attacking officers with swords on Wednesday

The spate of bombings have rocked Indonesia, with the Islamic State group claiming the church attacks and raising fears about its influence in Southeast Asia as its dreams of a Middle Eastern caliphate fade.

Tourists holidaying in Bali have been told to exercise a high degree of caution following the wave of deadly terror attacks.

The Australian Government warned tourists there was a heightened risk of terror attacks during the month of Ramadan, which started on Tuesday.

On Monday, members of another family blew themselves up at a police station in the city, wounding 10

'There were five people on two motorbikes. One of them was a little kid,' national police chief Tito Karnavian said. 'This is one family.'