Indonesian police have confirmed officers shot dead a woman who was wielding a gun at the police headquarters in Jakarta.
The woman opened fire at officers guarding a post at the police premises in the capital, national police chief General Listyo Sigit Prabowo said.
"We took firm action against a terrorist who tried to carry out an attack at the national police headquarters," Listyo said at a news conference.
Listyo said the 25-year-old woman was a sympathiser of Islamic State and had posted messages on social media expressing support for the militant group.
"The result of our profiling is that the person espoused a radical ideology similar to that of ISIS," Listyo said, using the former name of Islamic State.
The university drop-out also left a good-bye letter for her family, he said.
Mobile phone footage broadcast on the TVOne news channel showed the woman wearing a flowing dress and a headscarf falling to the ground as shots were heard.
The incident followed a suicide attack on a church in the eastern Indonesian city of Makassar on Sunday, allegedly carried out by a married couple.
At least 20 people were injured in the attack, which also killed the bombers.