A police officer from Bayonne, N.J. who once served as a drug-abuse-prevention instructor for schoolchildren was one of two officers who were charged in the sale of Ecstasy to undercover officers, prosecutors said yesterday.

According to the Bergen County prosecutor, John L. Molinelli, members of the county narcotics task force made contact with Officer Michael Hurley, 32, of Bayonne, in Hudson County, early last week as part of an investigation and arranged a meeting.

On Thursday, investigators went to the two-family home that Officer Hurley shares with his father and another police officer, and bought a small amount of Ecstasy, Mr. Molinelli said.

Investigators returned on Friday, and after a larger sale in front of his home, the prosecutor said, arrested Officer Hurley, who has been on the force for eight years.