D.C. police have arrested and charged a man in connection with breaking into nine residences from June through October in Northeast and Northwest Washington.

In many cases, people were home when the burglaries occurred, and, in some instances, police said, they confronted the suspect, who was armed with a knife.

Police on Monday said they arrested Deaundrey Williams, 23, of Northeast and charged him with nine counts of first-degree burglary. He had not made an initial appearance in D.C. Superior Court as of Tuesday morning.

Authorities said the first burglary occurred in June and the last on Oct. 1. The targeted residences were scattered about several areas, from Trinidad to the outskirts of Capitol Hill to Bloomingdale and the H Street corridor.

At times, police said, residents awoke and confronted the suspect, who fled with property. Other times, police said, the suspect threatened residents with a knife and demanded they turn over property and money. The break-ins occurred between 11 p.m. and 6 a.m.