A series of bombs killed at least six people including three police in the Indonesian capital Jakarta on Thursday, with shots fired outside a cafe as security forces moved in, police and witnesses said.
The explosions were close to a shopping centre, the Sarinah, where bodies were seen strewn on the ground.
Indonesian police shot dead four suspected militants who were part of a bomb and gun attack, a police spokesman said.
"We are sterilising the building from basement to top," Iqbal Kabid told reporters, explaining that a gunbattle between the attackers and police took place in a cinema that is in the same building as a Starbucks cafe that was attacked.
Police snipers were deployed among hundreds of other security officers, some in armoured vehicles. A bomb disposal unit was seen entering the building where the Starbucks is located, which also houses a cinema.
An office worker in a building above the Starbucks cafe, who declined to be identified, said he and fellow workers had been ordered to stay put after the first blast.
"That's when I heard the second explosion. It was loud and powerful," he said.
Indonesia has been on edge for weeks over the threat posed by Islamist militants and counter-terrorism police have launched a crackdown on people with suspected links to Islamic State.