After a bomb attack and an hours-long gunfight in which three German soldiers were killed Friday afternoon in the northern province of Kunduz , German troops opened fire on two vehicles of Afghan soldiers , mistaking the responding troops for insurgents .