A series of bomb explosions have rocked the center of Indonesia's capital, followed by gunbattles between attackers and security forces.

Police says the situation is now under control in Jakarta, with five attackers and two other people killed.

The January 14 attacks, which centered on a central shopping and business district, hit locations that included a Starbucks cafe.

The attackers reportedly included suicide bombers.

The Islamic State (IS) said it carried out the attacks, a news agency linked to the militant group said.

On January 12, a Syrian suicide bomber killed 10 German tourists in Istanbul. Authorities there suspect the bomber had links to Islamic State.

Speaking in London, U.S. Secretary of State John Kerry condemned the Indonesian attack.

"There is nothing in any act of terror that offers anything but death and destruction," Kerry said.

Indonesian President Joko Widodo called on people to remain calm, saying: "The state, nation, and people should not be afraid of, and lose to, such terror acts," he said.

Indonesia, the world's most populous Muslim nation, has been on edge recently over the danger of Islamist militants and counterterrorism police have launched a crackdown on people with suspected links to the Islamic State group.