EDMONTON -- Three men are in custody after a shooting involving a police officer and a stolen police car that happened on Friday morning.

An RCMP officer responded to a report of a single vehicle crash on Highway 596 and Range Road 10, west of Red Deer around 5:30 a.m.

While at the scene, the officer came across a second vehicle which was also in the ditch.

The officer asked the three men inside and asked if they needed assistance and police say they attacked the officer and took the officer to ground where there was a struggle and the men tried to take the officer's equipment.

The officer fired their service pistol.

Police say the three men stole the police vehicle and took off.

The officer suffered minor injuries during the incident.

Police found the stolen vehicle abandoned in a field near Highway 11, about two kilometres north of the ditch where the altercation happened.

Officers from Sylvan Lake, Red Deer, RCMP Air Services and Police Dog Services were called in to find the men, who fled on foot.

Two of the men, a 25-year-old and a 27-year-old were arrested near the abandoned vehicle, the third was arrested nearby.

The third man, a 26-year-old, had a gunshot wound to his right calf. He was taken to hospital and later released into police custody.

All three men are still in custody.

The Alberta Law Enforcement Response Team is stepping in to investigate the officer’s use of the gun; RCMP will continue to investigate the actions of the men and the incidents leading up to the confrontation with police.