BERNALILLO, N.M. — A crash involving a commercial passenger bus and three other vehicles on a New Mexico highway early Sunday killed three people and injured 24 others, some critically, authorities said.

One of the people killed was in a car that struck a pickup truck from behind around 2 a.m. on Interstate 25 just north of Bernalillo, about 18 miles north of Albuquerque, Sandoval County Sheriff’s Office spokesman Lt. Keith Elder said.

The bus driver took evasive action to avoid hitting the disabled car and its driver, who was ejected.

But the bus driver lost control and the bus rolled onto its right side. It was then sideswiped by a semitruck, according to Elder.

Rio Rancho Fire Rescue said emergency crews had to extricate several people who were trapped in the bus using a tool that pries open parts of a vehicle.

Photos show a mangled car that’s almost entirely flattened and the bus on its side.

At least two of the injured were airlifted from the scene by medical helicopters.

It wasn’t immediately known whether the other two persons who died were bus passengers or were in one of the other vehicles involved.

Elder said the names of the three dead were being withheld until relatives could be notified.

Sheriff’s officials said 35 people were on the bus operated by El Paso-Los Angeles Limousine Express.

Its route wasn’t immediately known and officials of the bus company didn’t immediately comment on the accident.