The correct answer is: B. was caught
The sentence is in the past tense, so we need to use a past tense verb. The verb "catch" can be used in the simple past tense to mean "to arrest or capture someone." In this case, the sentence is saying that the person was arrested while hiding the jewels.
The other options are not correct because they do not fit the context of the sentence. Option A, "caught," is in the simple past tense, but it does not make sense to say that the person caught himself while hiding the jewels. Option C, "had caught," is in the past perfect tense, but it does not make sense to say that the person had caught the jewels before he was arrested. Option D, "is caught," is in the present tense, but it does not make sense to say that the person is arrested while hiding the jewels.
In conclusion, the correct answer is: B. was caught