HUNTSVILLE, Alabama-- An off duty Madison police officer turn the odds in his favor during an attempted robbery Wednesday morning.

The off duty officer was approached by a man with the gun while he was in the parking lot of the Gallery Shopping Center in the 4900 block of University Drive at 1 a.m., police say.

According to police, the man demanded the officer's property, and the officer then pulled out his own gun and fired two shots at the would-be robber.

The report say the man left the scene in a dark colored SUV.

The officer was not injured, but it is not clear if the robber was shot. The investigation is ongoing.