Portsmouth officials said the layout and construction of the garage slowed crews in containing the fire.