A 32-year-old New York man was arrested for impersonating a police officer -- and is being investigated by the FBI -- after he allegedly presented a federal badge during a robbery attempt at the Borgata.

Richard Kozakiewicz told police that as he returned to his casino hotel room after gambling Friday, he was followed into the elevator and the suspect -- later identified as Jonathan Zembreski -- struck up a conversation, Sgt. Monica McMenamin said.

After Kozakiewicz was back in his room, he heard a loud bang and saw Zembreski, of North Port, NY, through the peephole and heard him yelling: "Open the door," and saying he was with the FBI and showing a badge, according to the report.

Once inside, Zembreski threatened Kozakiewicz and demanded money, McMenamin said. When Kozakiewicz tried to leave, Zembreski slammed the door on his hand.

Kozakiewicz told police he convinced Zembreski that if they got to the casino floor, he would be able to give him the money he demanded.

But when they got to the floor, he notified Borgata security, and Zembreski was arrested by Atlantic City Police Officer Michael Peters.

Bail was set at $200,000 by Judge Henry Warner.

Zembreski was charged with robbery, impersonating a law enforcement officer and possession of prescription legend drugs.

Special Agent Joseph Furey of the FBI was contacted, and federal charges against Zembreski are pending.