BATH, Maine — A 34-year-old man was arrested Wednesday after police say he threatened a group of 10-year-old boys at a local elementary school.

Andrew Pinkham of Bath was charged with criminal threatening and taken to Two Bridges Regional Jail in Wiscasset, according to Bath Police Lt. Robert Savery.

Pinkham allegedly walked into Fisher-Mitchell School at about 1:30 p.m. Tuesday and overheard his son in a bathroom telling other boys to leave him alone, Savary said.

Pinkham then allegedly entered the bathroom “and threatened a couple of students who [he said] were threatening his son. In his mind, he felt he was being picked on, but there was no evidence of that. We felt [the charges were] appropriate,” Savary said. “You can’t just go into a school and tell a kid you’re going to punch them in the face.”

Pinkham was arrested at about noon on Wednesday. He was out on bail for two previous charges of operating under the influence of drugs, according to Savary. Sagadahoc County District Attorney Geoffrey Rushlau revoked the bail and he was returned to Two Bridges Regional Jail.

Savary said he’s confident that school administrators are taking proper precautions to protect students and that Pinkham allegedly skirted a requirement that all visitors check in at the office. He described the event as an “isolated incident.”

“They did all the right things,” he said. “I’m very confident in their efforts to protect children. The question is, how did this guy get into the school.”