A naked and apparently emotionally disturbed man fell to his death from a building ledge in Brooklyn on Wednesday after an officer shot him with a Taser stun gun, the police said. The police and witnesses said he had been yelling at passers-by and swinging a long light bulb tube at officers before he fell.

The man, identified by the police as Iman Morales, 35, was taken to Kings County Hospital Center with serious head trauma after falling about 10 feet to the ground, witnesses said. He was later pronounced dead, officials said.

Mr. Morales’s death on Wednesday afternoon was another episode in the controversial history of Taser use in the city. While Police Commissioner Raymond W. Kelly has looked cautiously on the use of stun gun technology by the Police Department, he recently said he was open to broadening the use of the weapons after a city-commissioned study on police shooting habits urged the department to consider using Tasers more frequently instead of deadly force when applicable.

A video taken by a witness and posted on the Web site of The New York Post shows Mr. Morales naked on the ledge, waving the filament tube over the heads of officers as onlookers screamed, an eerie soundtrack to what soon followed.