The Islamic State group claimed responsibility for the attack in a statement posted on affiliated channels on social media. A U.S. intelligence official told The Associated Press that U.S. intelligence agencies had learned the group’s branch in Afghanistan was planning an attack in Moscow and shared the information with Russian officials.