PARIS — He was a proud gay man and a committed policeman.

He was among the officers who responded to a terrorist attack at the Bataclan concert hall in November 2015, and he was in the crowd when Sting helped reopen the 19th-century building a year later.

Xavier Jugelé, 37, a Paris police officer since 2010, himself fell victim to terrorism Thursday evening. He was in a police vehicle on the heavily guarded Champs-Élysées, Paris’s most famous boulevard, when a gunman opened fire, killing him and wounding two other officers, along with a bystander.

The gunman was shot dead as he tried to flee; the Islamic State claimed responsibility for the attack a short while later.

Officer Jugelé was mourned on Friday by friends and fellow officers.

“He was a simple man who loved his job, and he was really committed to the L.G.B.T. cause,” said Mickaël Bucheron, president of Flag, a French association for lesbian, gay, bisexual and transgender police officers. “He joined the association a few years ago, and he protested with us when there was the homosexual propaganda ban at the Sochi Olympic Games.”