A former Frederick County sheriff's deputy who was accused of having an inappropriate relationship with a 14-year-old girl received an 18-month suspended jail sentence at his sentencing on Thursday, The Frederick News-Post reported.

Sam Allen Bowman, 47, pleaded guilty to misconduct in office in October. He had also been indicted on three counts of fourth-degree sex offense, but those charges were dropped after he pleaded guilty.

Bowman was accused of having sexual contact with a girl who attended Walkerville High School, where he worked as a school-resource officer. His cruiser's GPS system showed that he was at the girl's house for more than an hour on March 9, 2011.

Despite the fact that a prosecutor said she never doubted the girl's story, Bowman maintained during Thursday's sentencing that he did not have a sexual relationship with her, the News-Post reported.

Bowman claims that he went into the girl's house because he was looking for evidence that she had been inhaling paint fumes. In his guilty plea, he did not admit to sexually abusing the girl but acknowledged that he took the girl to her house and entered her home and her bedroom without reporting it through proper channels.

The suspended sentence means that Bowman could face 18 months in jail if he violates his probation.