Earlier in the day, the media reported that at least three law enforcement officers were injured in the explosion in the city of Bandung in the West Java province.
There were two explosions after a man armed with a knife entered the police building, the Kompas broadcaster reported, citing West Java police spokesperson Ibrahim Tompo.
According to the report, several police officers received injuries and the attacker died.