A robbery suspect, apparently under the false impression that law enforcement officers rounding up suspected gang members in the Bronx were actually looking for him, fell from the sixth floor of a building to his death on Wednesday as he tried to hide, the police said.

The man, Geovanni Martin, 21, plunged from a window at 693 East 236th Street in the Wakefield neighborhood, at an apartment building where New York City police officers and United States marshals had executed an arrest warrant for someone else moments earlier, according to the police. Mr. Martin was pronounced dead at Jacobi Medical Center.

The police said Mr. Martin, who was visiting the building, was standing on a front fire escape when the officers and marshals were leaving the building with the suspect, around 5:45 a.m. They ordered Mr. Martin to go inside, and he complied, according to the police. But when the officers went back upstairs, the police said, they found him hanging from a different window ledge at the back of the building, apparently trying to hide. Unable to support himself, he lost his grip and fell to the ground, the police said.

Mr. Martin was not the subject of the warrant, but the police said he was a suspect in five robberies dating back to August in the Bronx on Monterey Avenue, Clinton Avenue and East 183rd Street. The victims were all women who ranged in age from 43 to 62, and were robbed mostly of jewelry and money, the police said.