Mexico's federal police say gunmen have ambushed a convoy of officers, leading to a shootout in which 10 people died, including five officers and two bystanders.

A police statement says the members of Mexico's new gendarmerie special force were ambushed late Thursday while patrolling in the town of Ocotlan in the western state of Jalisco.

Friday's statement says that as the convoy passed a parked car, a man inside pulled out a large-caliber weapon and opened fire. While officers sought cover and fired back, other gunmen arrived in at least 10 vehicles. Most of the gunmen escaped, leaving five officers, three armed civilians and two bystanders dead. Eight officers were wounded.

The gendarmerie is assigned to prevent crime in strategic business and tourist areas.