PIEDMONT >> Three people were killed and one seriously injured early Wednesday when a Tesla Cybertruck crashed and caught fire in Piedmont, officials said.

Piedmont Police Chief Jeremy Bowers said speed was likely a factor in the single-vehicle collision, but he added that authorities would continue to investigate the circumstances of the tragedy.

The Cybertruck’s occupants had been driving back from a “function” around 3:10 a.m. Wednesday, but Bowers would not give additional details. Someone who also had been at the function, but was driving in a separate car, was able to pull the surviving victim out of the Cybertruck.

Piedmont Fire Chief Dave Brannigan said the speed in extinguishing the flames meant it was unlikely that the Cybertruck’s large lithium-ion battery had caught fire. He called the incident “more along the lines of a typical car fire.”