Russia responded angrily on Saturday to a comment by U.S. Secretary of State Antony Blinken that Kazakhstan might have a hard time getting rid of Russian troops.
Russia said that he should reflect instead on U.S. military meddling around the world.
Blinken on Friday challenged Russia's justification for sending forces into Kazakhstan after days of violent unrest in the Central Asian country.
"One lesson of recent history is that once Russians are in your house, it's sometimes very difficult to get them to leave," Blinken said.
Russia's foreign ministry called Blinken's remark "typically offensive" and accused him of joking about tragic events in Kazakhstan. It said Washington should analyse its own track record of interventions in countries such as Vietnam and Iraq.
"If Antony Blinken loves history lessons so much, then he should take the following into account: when Americans are in your house, it can be difficult to stay alive and not be robbed or raped," the ministry said on its Telegram social media channel.
"We are taught this not only by the recent past but by all 300 years of American statehood."
The ministry said the deployment in Kazakhstan was a legitimate response to Kazakhstan's request for support from the Collective Security Treaty Organisation, an alliance of ex-Soviet states that includes Russia.
The Kazakh intervention comes at a time of high tension in Moscow's relations with Washington as the two countries prepare for talks on the Ukraine crisis starting on Monday.
Moscow has deployed large numbers of troops near its border with Ukraine but denies Western suggestions it plans to invade.


Saudi Coalition confirms Riyadh office tower hit by Houthi drone, no injuries
Israeli military kills chief of Hamas' armed wing in Gaza strike
Car bomb was used in Pakistan gold mine attack, regional minister says
Zelenskyy arrives in Britain for talks with PM, meeting of Crimea Platform
WHO's Tedros says 2 workers killed carrying Congo relief supplies
Surfer killed in shark attack in Australia's New South Wales
Pope Leo condemns attacks on Ukrainian civilians, urges Gaza flood relief
Meta says Australia social media ban hit 1.5 million teen accounts in first year
