Change the voice: He was writing a thesis paper.

Change the voice: He was writing a thesis paper.

Explanation
A thesis paper was being written by him.
The sentence is in past continuous tense ("was writing").
In passive voice, it changes to "was being written" + by-agent.