Indonesia's counter-terrorism unit announced on Tuesday the arrest of an alleged Islamic State (IS) loyalist suspected of planning an attack on the headquarters of the police's security division.
The man was detained in a raid on his house outside the capital Jakarta on Monday during which an IS flag, ammunition and 16 weapons were discovered, mostly handguns and modified air rifles, according to Aswin Siregar, spokesman for Indonesia's Densus 88 counter-terrorism taskforce.
The suspect, an employee with a state railway company, told authorities of his plan to attack the police facility, but gave no timeframe nor motive, Aswin said.
He was once a member of a defunct militant organisation and had posted pro-IS content on social media and sought to raise funds for extremism via the messaging app Telegram, he added.
"We were shocked by the evidence we found," Aswin told a news conference.
"The movement of Isis or supporters of Isis... has never stopped even when it's not visible to our eyes that they congregate," he said, referring to the Islamic State.
Indonesia, the world's largest Muslim-majority nation, suffered its worst militant attack in 2002 when two nightclubs on the island of Bali were bombed, killing 202 people, mostly foreign tourists.
Analysts say the threat of extremist attacks has since diminished significantly and while arrests of suspected extremists do take place, pledges of allegiance to Islamic State have been rare.