A massive explosion at a military arms depot near the Iranian capital Tehran on Saturday killed 17 Revolutionary Guards and wounded 15, a representative of the elite fighting force told the semiofficial Fars news agency.

Officials said the blast was an accident that happened as troops were moving munitions at a base in Bidganeh, near the town of Shahriar, about 45 kilometers (28 miles) west of Tehran.

The explosion shook homes and rattled windows for miles around, at a time of mounting tension with Israel over Iran's nuclear program.

Today at 13:30 [0900 GMT], an explosion happened in one of the Revolutionary Guards' bases while a consignment of explosive devices was being moved out from the arsenal, besides that some munitions in the arsenal exploded, which created a terrifying sound, Revolutionary Guards spokesman Ramezan Sharif told state TV.

Sharif initially said 27 people had been killed, but later revised that figure down to 17.

Residents in western suburbs of Tehran told Reuters they had felt the blast, with some assuming it to be a moderate earthquake.

The explosion started a fire at the base that raged for hours. Surrounding streets were closed, and reporters were kept away from the scene.

Risk

Some media reported there had been two explosions, and the head of Iran's Red Crescent organization said there was a risk of further blasts.

Mahmoud Mozafar told the Mehr news agency that only six paramedics had been allowed into the Amir Al-Momenin military base and that thick smoke was hampering the rescue operation.

There were no reports linking the blast to any air strike or other attack. Tension has risen in recent weeks between Iran and its enemies Israel and the United States, which have not ruled out attacking facilities whose occupants they believe are working toward making nuclear weapons.

Sharif denied what he said was speculation in the Western media that the military base was linked to Iran's nuclear program.

This blast is not related to any nuclear tests that some foreign media have reported, he told Mehr.

Tehran denies Western accusations -- given some credence by a report from the United Nations nuclear agency this week -- that its nuclear program has military ends.

On Oct. 12 last year, a similar blast at a Revolutionary Guards munitions store killed and wounded several servicemen in Khoramabad in western Iran. Authorities said that explosion was an accident, too.

(Additional reporting by Mitra Amiri and Hossein Jaseb; Writing by Robin Pomeroy; Editing by Tim Pearce)