The question itself isn't grammatically correct... it should be "John _ literature at ITU, when he _ at the English Embassy." - The comma, though it can be correct, seems very out of place.
I would choose D. When using "when" (as opposed to while) you generally use the nonprogressive form of the verb.