PORTLAND, Maine — A 37-year-old man was arrested near the Oxford Street shelter early Friday morning after police say he drew a pellet gun when asked to leave One City Center and then fled, shooting out windows in various buildings as he ran to the shelter.

Ajay Narayan, whose address is not listed, was apparently asked by a security guard to move at about 5:30 a.m. because he was blocking the entry to Dunkin’ Donuts in the ground floor of One City Center.

Narayan produced a pellet gun, and then fled in the direction of Oxford Street, Portland police Lt. James Sweatt said Friday.

Officers arrested him in front of the shelter. No injuries were reported.

Additional information was not immediately available.