The explosion severely damaged the building , killing and wounding policemen , prisoners and civilians .