MELBOURNE, Fla. -

A Melbourne police officer has resigned amid allegations he was asking women for their phone numbers while he was on duty, officials said.

Rey Munoz, who was in his first year with the Melbourne Police Department, submitted his resignation, officials said on Wednesday.

According to Melbourne police, Munoz was going to be terminated for asking women for their personal information on at least two separate occasions.  Instead, he decided to resign, police said.

Melbourne police said Munoz first approached women in December in the parking lot of a Walmart.  One of the women was the niece of a Melbourne police sergeant, officials said.

In February, according to police, Munoz also approached women outside a LA Fitness.  Police said  dash-camera video showed Munoz talking to three women.

"Once that was brought to supervision's attention, that person was informed of their conduct and how it can be damaging to them, to their reputation, to the department," a Melbourne officer said.  "There's no place for it here at the Melbourne Police Department."

Watch Local 6 News and stay with ClickOrlando.com for more on this story.