KUNDUZ, Afghanistan — Taliban insurgents struck at the German Consulate in the northern commercial hub of Mazar-i-Sharif late Thursday night, killing at least two people and wounding at least 90, Afghan officials said.

Sayid Sarwar Hussaini, spokesman for the regional police zone in northern Afghanistan, said that there were two large explosions at the Mazar Hotel, which German diplomats have been using as their consulate in the city. A suicide car bomb apparently initiated the attack at the compound’s security wall, followed by gunfire and an explosion inside the hotel.

The provincial police force issued a statement saying that no German Consulate personnel had been hurt, and that the police had cleared the consulate of attackers. Mirwais Rabee, the head of the public health department in Balkh Province, which includes Mazar-i-Sharif, said that the casualties had been transferred to the regional hospital there.

A Taliban spokesman, Zabihullah Mujahid, called the attack a reprisal for airstrikes in Kunduz this week.