A Dorchester man was shot once in the leg by a Boston police officer Thursday night after he allegedly assaulted a neighbor with a wooden stick, jabbed the officer in the stomach with the sharpened stick, and tried to hit the officer a second time, Boston police said. Edwin Guity, 22, was critically wounded in the incident that began near his home on Howe Terrace around 11:30 p.m.