Judge tosses indictment against officer accused of punching woman