A man wanted on a warrant for failing to appear in court on drug charges was taken into custody Thursday morning, but only after authorities broke through a wall and set a police dog loose in an attic to apprehend him, according to the Lake County Sheriff's Office.

Matthew T. Heidbrick, 27, of the 25700 block of North Gilmer Road in Ela Township, was wanted on a $100,000 bail warrant for failing to appear in court to face charges of possession of a controlled substance, Sgt. Christopher Covelli. said in a statement.

Lake County Sheriff's Office

Matthew T. Heidbrick

Matthew T. Heidbrick

(Lake County Sheriff's Office)

Covelli added that Lake County Sheriff's Warrants Team members developed information that Heidbrick was at his residence and went to take him into custody with the help of the U.S. Marshals Service — Great Lakes Regional Fugitive Task Force (USMS-GLRFTF).

According to the statement, deputies "located Heidbrick hiding in an upstairs attic. Heidbrick refused numerous requests to surrender and exit the attic. Heidbrick instead retreated further into the attic and barricaded himself."

The statement added that deputies "breached the wall in the area Heidbrick was hiding. He still refused to surrender. Sheriff's Canine Dax was deployed and assisted in the apprehension effort."

After being subdued, the statement added, Heidbrick was taken to a local hospital to be treated for a dog bite before being released back into the deputies' custody. He was charged with striking a police animal, resisting a peace officer and obstructing a police officer along with the previous charges.

According to the statement, Heidbrick remained held on Thursday pending an afternoon bond hearing.