Updated

An explosion went off outside a hotel in downtown Nairobi during morning rush hour, killing two people, injuring more than 30 and sending shards of broken glass flying through the air, officials said.

The cause of the blast was not clear, but police Commissioner Mohamed Hussein Ali said "it was something that somebody was carrying." In response to questions about whether it was a suicide attack, he said: "That type of speculation is not factual at all."

Linet Atieno, spokeswoman of the Kenya Red Cross, said that two people were killed in the blast.

The initial investigation shows that a man got off a minivan taxi and a guard tried to stop him from entering a small restaurant because he was wearing something that looked suspicious, police officers at the scene said.

Click here for FOXNews.com's Africa center.

The explosion occurred shortly after, said the officers, who spoke on condition of anonymity because they were not authorized to speak to the media.

They said it was not clear whether the man had anything to do with the bombing and they had no other details.

Two men who said they witnessed the explosion told The Associated Press they saw a man who left a black bag near a shoe shiner run away just before the blast.

"The black bag was left on the ground when this man hit me," as he ran away, said Robert Maritim, who had just finished having his shoes shined. Maritim, 24, said he fell down and as he was getting up, the explosion lifted him off the ground and he landed on a tree.

A man who said he witnessed the explosion said that the blast struck two men in their 30s who were walking together.

"One of the men, who was carrying a rucksack, was lifted off the ground and when he came down, he did not move ... The other man was injured on both legs but when we tried to assist, he refused our help," Joshua Kinyazui told The Associated Press. "The explosion caused papers to scatter all over and police then came and took the injured man away."

An AP reporter saw a body lying outside a small restaurant where the windows were blown out, with shards of glass strewn on the pavement.

The shop was on the ground floor of one of Nairobi's oldest hotels, the Ambassadeur Hotel, which has a largely Kenyan clientele. Part of the hotel's parking area also serves as a terminus for buses and minivan taxis. The hotel itself was not affected by the blast.

Police were trying to clear the area as hundreds of people gathered around.

Ali urged the public to be "extremely careful" about speculating on the nature of the explosion.

Kenyatta National Hospital had received 31 people injured in the blast, hospital spokesman Kariuki Chege told independent television station NTV. Six of them were seriously wounded, he said.

The last major bombing in Nairobi was in 1998, when the U.S. embassies in downtown Nairobi and Dar es Salaam, Tanzania were simultaneously hit, killing 225 people. An East Africa Al Qaeda network was blamed for that bombing.

Click here for FOXNews.com's Africa center.