He was only ten years old when the poem was composed by him. Given sentence is in simple past tense and it is in active voice. Rule : Subject + (was/were) + V3 + Other agents
From Voice · English Language Competence Test
Do you imitate others?
Sharma was cleaning the house.
The poet read his long poem himself.
None likes him.
The peon refused him admittance.
Mona was writing a letter to her father.
They have cut all the telephone wires.
Dogs always chase cats.