Flagstaff officer resigns after video of him punching woman surfaces