Avi Mandel is accused of allowing a 4-year-child to have marijuana in his system, police said. (Bergen County Proseuctor’s Office)

A high school teacher in New Jersey is accused of giving a 4-year-old child marijuana, authorities said.

Avi Mandel, 30, of Teaneck, was arrested after investigators said tests revealed that the child had tested positive for the drug, NJ.com reported. He was charged with endangering the welfare of a child, possession of marijuana and possession of paraphernalia, Bergen County Prosecutor Mark Musella said.

The child was taken to Hackensack University Medical Center and was lethargic and unable to stand, NJ.com reported. The state’s Division of Child Protection and Permanency alerted the prosecutor’s office.

Medical tests indicated that tetrahydrocannabinol (THC), the main psychoactive compound in cannabis, was present in the child’s body, according to WNBC. Teaneck police determined the child had been in the custody of Mandel when the substance was consumed, Musella said.

Mandel’s relationship to the child was not immediately clear, WNBC reported. It also was unclear where Mandel taught.

Mandel was released from police custody pending a court hearing, Musella told NJ.com.