Police officer attacked by out-of-control dog