A Lake Ronkonkoma man was arrested Tuesday about three hours after he robbed a Subway restaurant just down the block from his house, police said.

Craig Erick, 26, of Smith Road, entered the Subway on Hawkins Avenue in Lake Grove at 5:10 p.m., approaching the counter, flashing a knife — and demanding money from a store employee, Suffolk County police said. When the employee hesitated, police said, Erick walked behind the counter and took cash from the register.

advertisement | advertise on newsday

The Subway is located at the corner of Hawkins and Smith, a few hundred feet from where Erick lives, police said.

Police used an aviation unit and canine teams to track Erick, finding him and arresting him at his home at 8:16 p.m.

He was scheduled for arraignment on a first-degree robbery charge Wednesday in First District Court in Central Islip.