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 got into an unoccupied Porsche. The owner confronted the man and was stabbed and critically wounded.

Police pursued a suspect to Metzerott and Riggs roads in Prince George’s County, where he left his car and began to run.

A Takoma Park officer followed and tried to subdue him with a stun gun, police said. They struggled, and he beat her as she lay on the ground. Police said a second Takoma Park officer arrived, ordered the man to stop and shot him to protect her life.