The correct option is B was attacked
Here, 'was attacked' in simple past tense is correct because it
indicates an action that has already been completed.
Here, the highway 'was attacked' (past tense) by terrorists.
'Was being attacked' in past progressive tense is incorrect because it indicates continuing action, something that was happening, going on, at some point in the past.
'Had been ....' in past perfect continuous tense is incorrect
because it is used to indicate an action in the past that began before a
certain point in the past and continued up untill that time.
'Has been ...' in present perfect continuous tense
is incorrect because it is used to indicate an action that started at some
point in the past and may or may not be complete.