[Update: The 21-year-old black man fatally shot by a police officer on Thursday was most likely not the gunman in an Alabama mall shooting, the authorities now say.]

A gunman who shot another man during a fight at an Alabama mall late Thursday night as thousands got an early start on their holiday shopping was fatally shot by the police, the authorities said.

The gunfire, which sent shoppers fleeing for cover into stores and stockrooms, also injured a 12-year-old girl, a police captain said at a news conference early Friday. The girl was said to be conscious, and the police said her injuries were not life-threatening.

The episode rattled the crowded Riverchase Galleria in Hoover, about 10 miles south of Birmingham. Video posted on Twitter showed people sprinting down the mall’s corridor in a panicked stampede.