FARMINGTON, Maine — A man was shot to death by a police officer outside of the Farmington Police Department in the parking lot of the Town Office.

The police department is housed inside the town office building.

Police Chief Jack Peck said Justin Crowley-Smilek, 28 of Farmington, came to the police department and used a phone outside of the building to call for help.

When an officer came out to see him, Crowley-Smilek “went after the officer in a threatening manner,”and the officer shot him, Peck said.

The name of the officer involved in the shooting was not being released by the Farmington Police. The shooting remained under investigation. The shooting occured at about 11:03 a.m. Peck said.

Peck said more details would be released from the Maine Attorney General’s Office on Monday. The attorney general’s office is the agency that investigates police shootings to determine if they are justified.

Leon Heckbert, who was working at his garage across the street, said he heard four shots and then saw two police officers, one with his weapon drawn, standing over what appeared to be a body on the ground of the town office parking lot.