A Carroll Township man remains in York County Prison on $25,000 bail for allegedly trying to steal an air conditioner unit from a Dillsburg coffee shop, police say.

Brian Vargas Glenn, 19, of the 200 block of Chestnut Grove Road is charged with loitering and prowling at night and two counts of attempted burglary, according to Carroll Township Police.

Glenn attempted to steal the air conditioner from Square Bean Coffee Shop, located at 1 Baltimore St. on Sept. 19 but was confronted by a passerby, police said.

Glenn fled the scene but was arrested at Northern York High School, where he is a student, police said.