A Franklin Township, Somerset County, police officer who has been on the force for two years was charged with driving while intoxicated while working his shift, NJ Advance Media has learned.

Matthew D. Ellery is an active employee of Franklin Township and is assigned to the patrol division, Lt. Philip Rizzo, a spokesman for the police department, said in an email. Ellery, 29, was sworn-in Jan. 22, 2017.

Franklin police Chief Richard A. Grammar and Mayor Phillip Kramer did not return phone calls and emails seeking additional details on the April 7 incident. And public records requests for police reports and other relevant documents were denied because of an “ongoing and active criminal investigation into this matter” by the Somerset County Prosecutor’s Office.

What is known is that Ellery received a summons for DWI on April 15 for an incident that occurred at 1:08 a.m. April 7 in the 400 block of Bennetts Lane in Franklin. That address appears to be a service road off South Middlebrush Road near power wire towers and a farm.

Through the records request, NJ Advance Media was able to obtain a patrol shift roster, which shows Ellery signed in for duty at 9 p.m. Saturday, April 6, and was scheduled to end his shift at 7:30 a.m. Sunday, April 7.

The address listed on the summons for Ellery belongs to his family’s bar, Ellery’s Grill in the borough of Middlesex. It’s unclear why that address is on the ticket. A worker at Ellery’s who answered the phone Monday said Matthew Ellery does not live at the location. The manager and Matthew Ellery’s father, John Ellery, said he “doesn’t know anything” about why the summons lists the bar’s address. He declined to comment further and gave a reporter his son’s attorney’s information.

Ellery’s attorney, Steven Altman, declined to comment.

Ellery was scheduled to have a municipal court appearance on May 7. However, a court representative said the hearing did not happen because the case was transferred to the Somerset County Prosecutor’s Office.

A spokeswoman for that office, Detective Jeanne Trillhaase, said in an email, “I cannot confirm or deny that there is an active internal affairs investigation pertaining to Matthew D. Ellery of the Franklin Township Police Department.” When asked if Ellery has a court date scheduled, Trillhaase said in a follow-up email, “I can’t comment on an active internal affairs investigation.”

Have a tip? Tell us. nj.com/tips

Get the latest updates right in your inbox. Subscribe to NJ.com’s newsletters.

Alex Napoliello may be reached at anapoliello@njadvancemedia.com. Follow him on Twitter @alexnapoNJ. Find NJ.com on Facebook.