NAIROBI, Kenya — The US Embassy in Nairobi warned Monday it received “credible information” regarding an attack on hotels and government buildings in the Kenyan capital.

“The US Embassy informs US citizens residing in or visiting Kenya that the US Embassy in Nairobi has received credible information regarding a possible attack on Nairobi hotels and prominent Kenyan government buildings,” it said in a message posted on its website.

“Timing of the attack is not known, however, the Embassy has reason to believe that the potential attack is in the last stages of planning. The US Embassy urges Americans to remain aware of their surroundings and vigilant of their personal security,” the message added.

The message provided no further details of the nature of the threat.

In an updated travel warning for Kenya issued earlier this month, the State Department warned of “continuing and recently heightened threats from terrorism and the high rate of violent crime in some areas.”

The US government “continues to receive information about potential terrorist threats aimed at US, Western, and Kenyan interests in Kenya, particularly after the death of Osama Bin Laden,” the warning stated.

It said terrorist acts could include “suicide operations, bombings, kidnappings, attacks on civil aviation, and attacks on maritime vessels in or near Kenyan ports.”

Last week, the US Embassy in Nigeria’s capital Abuja warned that the radical Islamic group Boko Haram may be plotting attacks on hotels used by foreigners in the city.