The correct option is
B Had, been playing
NOTE: As the duration of the first action is given, before the other action took place, we will use the past perfect continuous tense.
Option A - 'Have, been playing' is used to represent a sentence in the present perfect continuous tense. Thus option A is incorrect.
Option C - 'Did, play' is used to emphasise the verb in the simple past tense. Hence, option C is incorrect.
Option D - 'Had, being playing' is grammatically incorrect as we need 'been' in the past perfect continuous tense and not 'being'. Hence, option D is incorrect.
Option B - 'Had, been playing' is used to represent the sentence in the past perfect continuous tense. Hence, option B is incorrect.
'We had only been playing for about 5 minutes when the other side scored a goal.'