(CNN) Officials in a Kansas county say their election system was not part of a malware attack that struck the county in July, despite Vice President Mike Pence's recent statement to the contrary.

Pence made the claim Tuesday as part of a speech on cybersecurity in which he spoke out strongly against Russian interference in the 2016 election, along with other attacks. News of the attack came just a week before the state's primary on August 7.

Pence told the audience at a cybersecurity conference in Manhattan that the attack had shut down the county's election network.

"Less than two weeks ago, Finney County, Kansas, reached out to DHS for help after a malware attack forced them to shut down not just their election network, but the entire county's network," Pence said. "Federal officials worked hand-in-hand with the county to identify and ultimately eliminate this dangerous intrusion. This is a model of the collaboration that we need to ensure the security of our elections."

But the attack didn't happen the way Pence described, according to a county official.

Read More