Complex sentence: It was unexpected because Thompson wasn't running for the position and was, unbeknownst to him, the subject of a write-in campaign.
Split into simpler sentences: It was unexpected because Thompson wasn't running for the position. Although he didn't know it, Thompson was the subject of a write-in campaign.