A Fairfield man remained in jail Thursday after allegedly committing a series of house burglaries in Ketchum and Hailey over several weeks in September.

According to a probable-cause affidavit written by Blaine County Sheriff’s Deputy Steven Hansen, law enforcement was dispatched to a home on Broadford Highlands Lane in Hailey on Oct. 2 for an unlawful entry in progress. Once on scene, officers found no one in the home and nothing was found missing, but the owner of the house allegedly had surveillance footage of the man who had entered the residence.

The owner allegedly recognized the man, Zachariah L. Kandler, 31, because he had done some landscaping work at the residence in the past. The homeowner also told police that he had previously had his house burglarized in June and had some prescription medications taken.

On Oct. 3, Kandler went to the Sheriff’s Office allegedly to turn himself in. He allegedly told Hansen that his employer had recently been notified that he was caught on film inside a client’s home. According to the affidavit, Kandler said he had developed a pain pill addiction following a “family event,” and had entered several unlocked homes in Ketchum and Hailey in the hope of finding pain pills.

According to the affidavit, Kandler drove with sheriff’s deputies to point out the homes he had entered illegally through unlocked doors. All homeowners have been notified, the Sheriff’s Office said.

Kandler was booked into the Blaine County Detention Center for two counts of felony burglary and is scheduled for a preliminary hearing on Oct. 17, at which time the prosecutor must present sufficient evidence for the case to be bound over to District Court.

The Sheriff’s Office issued a press release on Oct. 7 reminding residents to lock their doors in order to avoid being a victim of a burglary.