Islamic State (ISIS) carried out the attacks in Jakarta earlier on Thursday, a news agency allied to the group reported.
"ISIS militants carried out an armed attack this morning targeting foreign nationals and the security forces charged with protecting them in the Indonesian capital," Aamaaq news agency said on its Telegram channel.
Militants launched a gun and bomb assault in the centre of the Indonesian capital on Thursday, killing at least six people, police said, in an attack on a country that ISIS had threatened to put in its "spotlight".