MOSCOW—Russian President Vladimir Putin blamed U.S. intelligence services Monday for a global cyberattack that struck Russian computer systems particularly hard, attempting to reverse a narrative that has placed the Kremlin at the center of blame for politically charged hacking.

“The primary source of the virus is the United States,” he said in remarks to journalists in Beijing. “Russia is in no way involved.”

The...