A bomb exploded when it hit a window in the building.