TEHRAN, June 23 (AFP) - Iran said it had foiled a sabotage attack on an atomic energy agency building on Wednesday (Jun 23), shortly after slamming Washington's blockage of dozens of Iranian media sites as unhelpful for ongoing nuclear talks.

State television said the thwarted "sabotage operation" targeted a building belonging to the Atomic Energy Organization of Iran, without identifying the operation's nature or the culprits.

"The saboteurs failed to carry out their plan," and there were no casualties or damage, state TV reported.

Tasnim news agency said the target building was near the city of Karaj, about 50 kilometres west of the capital Tehran.

The reports came as talks continue in Vienna between Tehran and world powers aimed at reviving their hobbled 2015 nuclear deal, staunchly opposed by Israel, Iran's arch-nemesis and a key ally of the US.

The reported sabotage also comes a day after the US Justice Department said it had seized 33 Iranian government-controlled media websites, alleging they were hosted on US-owned domains in violation of sanctions.

The office of Iran's outgoing president Hassan Rouhani warned on Wednesday that Washington's move was "not constructive" for the nuclear talks, even as Germany's top diplomat Heiko Maas said there was a "good chance" of reviving the deal soon.