A suspect in a carjacking attempt in Takoma Park was fatally shot by police Saturday as he struggled with an officer after a chase, authorities said.

Takoma Park police said the incident began about 3:50 p.m. with an attempt to take a car at a gas station in the 6700 block of New Hampshire Avenue.

Police said a man drove to the station and tried to take a Porsche from its owner. The owner resisted and was stabbed with what appeared to be a steak knife, police said.

The Porsche owner was taken to a hospital in critical condition.

A suspect was pursued by police to Metzerott and Riggs roads in Prince George’s County. On the way, police said, the suspect’s car struck three occupied vehicles. At Metzerott and Riggs, the suspect’s car flipped over, and he began to run.

A Takoma Park officer followed him and tried to subdue him with a Taser. They struggled, and he beat her as she lay on the ground , police said. .

Police said a second Takoma Park officer arrived and fatally shot the suspect. Names were not available.