Iran said it has arrested 17 Iranian citizens on charges of spying for the U.S., a claim that President Trump dismissed as “totally false,” amid fears that growing tensions between Iran and Western countries could spiral out of control.

Iran’s announcement comes after weeks of growing acrimony, which most recently saw Iran seize a British-flagged oil tanker in the Persian Gulf last week.

An...