HARRISBURG — A man was shot and killed by police early Thursday after he fled a traffic stop then used his vehicle as a weapon by driving toward a city officer, the district attorney said.

Dauphin County District Attorney Fran Chardo identified the man as 31-year-old Albert E. Morton Jr. of Harrisburg.

Chardo said Morton was pulled over in the 1400 block of Vernon Street around 12:45 a.m. but took off, striking the police officer who stopped him. The officer was not injured.

“There had been an attempted traffic stop earlier, because the vehicle was driving without lights. During this relatively routine traffic stop the driver fled, and struck the officer,” Chardo said.

Around 1:30 a.m., police spotted Morton’s car, followed it, and saw the occupants toss out drugs and paraphernalia, Chardo said. When the car was stopped in the Hall Manor housing area, Morton was shot as he accelerated toward a uniformed officer, the district attorney said.

Police had an active arrest warrant for Morton, who was wanted for a home burglary, Chardo said.

A passenger in Morton’s car, Arthur L. Brothers Jr., is charged with possession of cocaine, possession of drug paraphernalia, and tampering with evidence. Chardo said Brothers ran from the stop in Hall Manor but was eventually taken into custody.

The district attorney’s office is investigating the police use of force.

“The inquiry is whether or not the vehicle was being used as a deadly weapon, such as if it would justify the use of deadly force,” Chardo said.