The Islamic State-linked Aamaq News Agency said the attack in an upscale neighborhood in central Jakarta "targeted foreign nationals and security forces charged with protecting them."
Explosion in Jakarta, Indonesia

1
A plainclothes police officer aims his gun at attackers during a gun battle following explosions in Jakarta, Indonesia Thursday, Jan. 14, 2016. Attackers set off explosions at a Starbucks cafe in a bustling shopping area in Indonesia's capital and waged gunbattles with police Thursday, leaving bodies in the streets as office workers watched in terror from high-rise buildings

2
Indonesian soldiers stand guard near the site where an explosion went off in Jakarta, Indonesia Thursday, Jan. 14, 2016. Attackers set off explosions at a Starbucks cafe in a bustling shopping area of downtown Jakarta and waged gun-battles with police Thursday, leaving bodies in the streets as office workers watched in terror from high-rise windows.

3
Police officers gather outside a Pizza Hut restaurant next door to a Starbucks cafe which was attacked in Jakarta, Indonesia Thursday, Jan. 14, 2016. Attackers set off explosions at a Starbucks cafe in a bustling shopping area in Indonesia's capital and waged gunbattles with police Thursday, leaving bodies in the streets as office workers watched in terror from high-rise windows

4
Smoke billows from an explosion in Jakarta, Indonesia, Thursday, Jan. 14, 2016. Suicide bombers exploded themselves in downtown Jakarta on Thursday while gunmen attacked a police post nearby, a witness told The Associated Press. Local television reported more explosions in other parts of the city.