A candidate for Gramercy police chief, David Detillier, was arrested Saturday by St. James Parish sheriff’s deputies after a dispute erupted between him and his girlfriend at their home during which Detillier threatened to shoot anyone who came inside, the Sheriff’s Office said.

Detillier was taken into custody after setting off two firecrackers that deputies at first mistook for gunfire.

Deputies went to 156 N. Colonial Ave. in Gramercy after receiving a 911 hang-up call and learned that Detillier’s girlfriend had attempted to make the call during a dispute with him, authorities said.

The woman and the first responding officer told other deputies who arrived at the scene that Detillier had threatened to shoot anyone who walked into the home. The immediate area was sealed off to the public and officers began to negotiate with Detillier, according to the Sheriff’s Office.

Because of the severity of the threats, the Sheriff’s Office said it staged its Special Response Team nearby.

“The SRT is utilized in situations where a potential threat to public safety or law enforcement is present,” said Maj. Sid Berthelot, with the Sheriff’s Office.

During the hourlong incident, Detillier repeatedly entered and exited his home, before leaving the house and exploding the two firecrackers. Officers rushed in, believing shots had been fired, and took Detillier into custody after a brief pursuit on foot, according to the Sheriff’s Office.

Detillier, who is also the chief of the Gramercy volunteer Fire Department, was booked into the St. James Parish Jail on counts of criminal mischief, resisting an officer and disturbing the peace, according to a news release from the Sheriff’s Office. He was released on bail.

Detillier could not be reached for comment.