An East Hampton man was arrested Friday after going into a local school and identifying himself as a New York City police officer even though he quit the job seven years ago, East Hampton Village police said.

Harry Dalian, 36, on Wednesday went to the John M. Marshall Elementary School in East Hampton, where he questioned the principal and the uniformed police officer assigned there about school security issues, police said.

At the request of the school district, officers have been posted at schools since the shootings at Sandy Hook Elementary School in Newtown, Conn., on Dec. 14.

Dalian showed the school officer his NYPD identification and badge, but investigators looked into his background and found out he was with NYPD from 2004 to 2006, when he left the job for personal reasons, police said.

When he quit, Dalian was supposed to turn in the badge and ID to the NYPD, but he had reported it stolen, said village police Chief Gerard Larsen Jr. Village police recovered the badge and ID.

Dalian was arrested during a vehicle stop Friday and had a fully loaded 9-mm gun, police said. He was arraigned Friday in East Hampton Town Justice Court on second-degree criminal impersonation and fourth-degree possession of stolen property, the NYPD badge and ID. He was released on his own recognizance.

advertisement | advertise on newsday

The Suffolk County sheriff's office has suspended Dalian's gun permit and confiscated nine handguns, all of which were legal before his arrest, police said.

The school has barred him from being on school grounds, police said.

It's not clear why Dalian was asking about security, but his children attend the school, Larsen said.

"Maybe he was sincere," the chief said.