CANBERRA, Australia—Russia is a bigger security threat than Islamic State, based on its willingness to challenge the democratic foundations of the U.S. by interfering in elections, Sen. John McCain (R., Ariz.) said during a visit to Australia.

Mr. McCain, who was in Australia to discuss Asia-Pacific security issues, said Russian President Vladimir Putin was the “premier” challenge to American security.

“I...