People gather in front of the Brandenburg Gate commemorating the victims, after a car rammed into a crowd at the Pride March in Berlin, July 26. AP-Yonhap

BERLIN — German police said a 21-year-old man with a record of Islamist extremist activity was shot dead on Sunday, a day after he allegedly drove a minivan into people near Berlin's Pride celebrations, killing one person.

The ramming attack happened in the Tiergarten park near the Brandenburg Gate at about 10 p.m. (2000 GMT) on Saturday, not far from one of Europe's biggest annual LGBTQ celebrations, Christopher Street Day.

Authorities said that in addition to the one fatality, 29 people were injured, some by a bladed weapon the attacker wielded.

"Around 6 p.m. (1600 GMT), the suspect involved in yesterday's attack in Tiergarten was located at an allotment garden complex in Spandau," Berlin police wrote on X, referring to an area in Berlin's westernmost borough where residents cultivate garden plots.