U.S. President Barack Obama expressed his deepest condolences to the victims in Jakarta bombing on Friday.

The American people stand by the Indonesian people in this difficult time, and the U.S. government stands ready to help the Indonesian government respond to and recover from these outrageous attacks as a friend and partner, Obama said in a statement.

We will continue to partner with Indonesia to eliminate the threat from these violent extremists, and we will be unwavering in supporting a future of security and opportunity for the Indonesian people, the president continued.

He also praised Indonesia's efforts in combating violent extremist and curbing terrorist activities within its borders.

However, these attacks make it clear that extremists remain committed to murdering innocent men, women and children of any faith in all countries, he said.

Suicide bombs ripped through two luxury hotels in the capital of Indonesia on Friday, the Marriott and Ritz-Carlton, killing at least nine people and wounding at least 50.

The explosions are the first major terrorist attacks in Indonesia since October 2005, when suicide bombers killed 20 on the popular tourist island of Bali.