SAN DIEGO — Three people got hurt Wednesday when a Tesla crashed through a fence and landed on top of an ambulance in a San Diego parking lot, officials said.

The crash happened around 9:40 a.m. on Greencraig Lane, just south of the Kaiser Permanente hospital in Kearny Mesa, according to San Diego Fire-Rescue.

It wasn’t immediately clear how the driver lost control, but it appeared they may have accelerated out of a parking space instead of backing up, officials said at the scene. The car careened down a small embankment, crashed through a fence and landed on a parked ambulance in the lot below.

Photos shared on the fire department’s Twitter account showed the Tesla sitting on top of the downed fence, with its front half balanced precariously on the ambulance and its back half still on the hill. The car’s front wheels and front two doors were suspended in the air, bridging a gap between the ambulance and a 7- or 8-foot wall.

A San Diego Fire-Rescue official looks up at the braces holding a Tesla in position after its driver crashed down a hill and landed on top of an ambulance in Kearny Mesa. (Photo: San Diego Fire-Rescue)

Authorities told three people inside the car to stay put until a technical rescue team could reach them, SDFD’s Mónica Muñoz told FOX 5 by email. Eventually, rescuers removed the trio and all three were taken to the hospital with injuries. Officials did not share further details about their status.

Next, crews had to determine how to safely remove the car from the ambulance. Fire officials said they were concerned about potentially damaging the electric vehicle’s battery. The technical rescue team used tools to brace the car while they figured out what to do next.

By about 11:45 a.m., crews lifted the car off the other vehicle and back onto solid ground, running thick straps through each window and across the ceiling of the Tesla, then pulling it up with a crane.

The ambulance involved in the crash was one in a long line of emergency vehicles parked in the lower lot. The ambulance company Falck has a corporate office listed at the address.

No one outside of the Tesla was hurt in the crash, officials said.