AHe was only ten years old when the poem was composed by him.
BHe was only ten years old when the poem has been composed by him.
CHe was only ten years old when he could compose this poem.
DHe was only ten years old when this poem had been composed by him.