Officer swerves to avoid deer, crashes patrol car