UPPER DARBY, Pa. (AP) — Police in suburban Philadelphia say a man who threatened to kill officers in an online video tried to run them down in a car and they shot him dead.

They say it happened Tuesday in Upper Darby after the man appeared ready to accelerate at officers manning a blockade.

Police say the man was wanted for threatening to kill police and FBI agents in the video. His death comes days after a man who made similar threats killed two New York Police Department officers and then himself.

Upper Darby Police Superintendent Michael Chitwood says the officers feared for their lives and “did what they had to do.”

Police say they began following the man after he left a Clifton Heights home. They say he was ordered out of the car but reversed into a police vehicle.