SAN ANTONIO (AP) — Investigators in San Antonio say a man originally arrested on a trespassing count tried to escape through the ceiling of his cell but was caught after setting off some sprinklers.

The Bexar County Sheriff’s Office says Matthew Fields of New Waverly was being held Wednesday on the initial count pending other charges. Authorities say Fields is expected to face escape and criminal mischief charges, plus assault on a public servant.

Two deputies suffered minor injuries pursuing the 24-year-old Fields, who was booked Tuesday.

Fields never left the secure jail area. He was located in the infirmary after allegedly climbing into the ceiling of his cell, getting into a stairwell and opening a sprinkler valve. Parts of the basement flooded.

Online records Wednesday did not list an attorney representing Fields.