A former Brunswick police officer who pleaded guilty to attempting to send obscene material to a 13-year-old girl was sentenced to prison today.

Garrett Brosnan, 25, of Bath, Maine, was sentenced in U.S. District Court at Portland by Judge Jon D. Levy to one year and one day in prison and two years of supervised release for attempting to transfer obscene matter to a minor. Brosnan pleaded guilty to the offense on September 14, 2016.

Brunswick Police Dept

According to court records, in May of last year, agents from U.S. Immigration and Customs Enforcement’s Homeland Security Investigations were investigating a report that an unknown adult male had an inappropriate online interaction with a 13-year-old minor girl in Flagstaff, Arizona. The girls parents told investigators they had found that the man conducted conversations of a sexual nature over a span of five days in October of 2015. The man told the girl we was 19.

Investigators obtained information suggesting that the male was Brosnan. An HSI investigator in Arizona initiated an undercover online conversation with Brosnan in late May. The investigator said she was a 14-year-old girl from Arizona.

On June 2, prosecutors say Brosnan sent the investigator a picture of himself exposing his penis. He also requested photos in return.

Brosnan was arrested June 21 at the Brunswick police station by federal agents and tendered his resignation from the police force four days later.

Brosnan was ordered to report to prison on Feb. 22. Judge Levy said that he would recommend a prison near Maine. He also said that prison authorities would be informed that Brosnan is a former police officer so they can take that into account in deciding security arrangements once he is in prison.