The correct answer is B. retired/had been.

The sentence is in the past perfect tense, which is used to talk about an event that happened before another event in the past. In this case, the first event is Richard's retirement from the army, and the second event is his involvement in three separate riots. The past perfect tense is formed with the past participle of the verb (retired) and the auxiliary verb had.

Option A is incorrect because the past participle of the verb retire is retired, not would be.

Option C is incorrect because the past participle of the verb retire is retired, not has.

Option D is incorrect because the past participle of the verb retire is retired, not will be.

Option E is incorrect because the past participle of the verb retire is retired, not had been.

The other options are also incorrect because they do not make sense in the context of the sentence.