A police officer has opened fire on a bandit who drove at him in the central Queensland town of Yeppoon.

Police have opened fire on a car after a bandit drove at an officer in central Queensland.

The shot hit the car, which flipped when it became tangled in a chain fence at Yeppoon early on Monday morning.

Officers patrolling the town had spotted the man trying to break into a business.

When they ordered him to stop, the bandit got into his car and drove at an officer.

“The police officer, it would appear, was in fear of his life,” a police spokesman told the ABC.

“He’s then discharged one single shot … striking the vehicle. The vehicle has then continued past the police officer, through a very high chain mesh fence, which has become wrapped around the vehicle causing it to flip onto its side.”

A 35-year-old man is in custody. Officers from the police ethical standards command are investigating.