Matthew J. Huebschman is accused of, what police called, a yearlong pattern of disturbing and intrusive behavior.