A 14-year-old boy was arrested early Tuesday morning after allegedly breaking into a Dunkin’ Donuts in Dorchester and trying to pry open an ATM inside with a yellow crowbar, Boston police said.

Officers on routine patrol in the Lower Mills neighborhood in Dorchester near the intersection of River, Washington and Dorchester Avenue around 1:55 a.m. were flagged down by a passerby who reported seeing someone shatter the glass door of the Dunkin’ Donuts.

When police arrived at 2290 Dorchester Ave., they allegedly saw the Dorchester teenager “attempting to pry open an ATM machine inside the business with a yellow crowbar in hand.’’