CLARENDON, N.Y. (AP) -- A man who shot a sheriff's deputy after crashing his car during a high-speed chase was shot and killed by the deputy Saturday, authorities said.

The deputy was slightly wounded during the shootout just before 3 a.m. in the town of Clarendon, the Orleans County sheriff's office said. Authorities identified the slain gunman as James Ellis, 44, of Wyoming, New York

Officers responded after someone called 911 to report a disturbance involving a man with a gun inside a home in the town of Shelby, the sheriff's office said, but the gunman fled in a car before officers arrived.

The officers gave chase but Ellis crashed into a telephone pole before they could catch up with him, according to the sheriff's office. Ellis then got out of his car and started firing, authorities said.

Deputy James DeFilipps took covered behind trees but was struck by two shots before returning fire and killing Ellis, according to the sheriff's office.

DeFilipps, who was wearing his bulletproof vest, was treated for minor injuries and released.