Afghan security forces battled for hours against a group of attackers who stormed a government building in the eastern city of Jalalabad on Sunday after a coordinated assault that killed at least 15 people and wounded 42, local officials said.

A car bomb was detonated at the entrance to the state accounts office before a group of about six attackers armed with machine guns and rocket-propelled grenades rushed the building, the officials said. There were multiple blasts as they fought off security forces in a gun battle that lasted much of the day.

The attack took place in a busy area of the city with many other official buildings nearby, including a school in which about 1,000 girls were trapped as the fighting raged. There was no immediate claim of responsibility.