At least four men were shot and killed by police officers after they tried to attack a police station in Pekanbaru, the capital of Indonesia's Riau province, on May 16, according to Indonesian news website Detik.
The assault in the city of Pekanbaru on Sumatra island on Wednesday saw a group ram their minivan into a gate at the station and then attack officers with the swords, police said. Police updates have stated that there were five attackers, and that four were shot dead at the scene.
A police spokesman in Riau said they had not identified the perpetrators yet or determined their motive. Police found the van not far from the location of the attack and searched it for possible explosive materials.
Attack comes after multiple bombings in Surabaya in the past week.
The report said that the men had driven their vehicle into the police yard before getting out to stage the attack.
Television images showed what was reportedly the bodies of four suspects lying on the ground.
But on Sunday, a family of six - including girls aged nine and 12 - staged suicide bombings of three churches during morning services in Surabaya, killing 13.
This was the second attack on a police premise in the country since Monday.
Local police initially said they had killed three people and wounded another.
Its worst-ever attack was the 2002 Bali bombings that killed more than 200 people, including locals and foreign tourists.
Police suspect they were carried out by a cell of the Islamic State-inspired group Jemaah Ansharut Daulah (JAD), an umbrella organization on a U.S. State Department terrorist list that is reckoned to have drawn hundreds of Indonesian sympathizers of Islamic State.