Several people are injured and one person is dead following a shooting at a Fayette County magisterial district court judge’s office Wednesday afternoon, according to the Pennsylvania state police.

The shooting took place outside the office of MDJ Daniel Shimshock in Masontown, which is about 50 miles south of Pittsburgh, police officials said at a press conference Wednesday afternoon. According to police, four people were injured, including one police officer, and the shooter was killed. Aside from the shooter, none of the others appeared to have sustained life-threatening injuries, police said.

Police declined to name the shooter Wednesday afternoon.

According to police, the shooting occurred shortly after 2 p.m. in the lobby of the Masontown Municipal building, which houses Shimshock’s offices. Police said the man was using a handgun.

Police said the shooter had been previously involved in a domestic dispute that resulted in several assault charges. Neither the judge, nor any members of his staff were targeted in the shooting, police said.

According to police, the shooting occurred while some court proceedings were ongoing. Shimshock, several members of his staff, an assistant Fayette County district attorney, several defense attorneys, police officers and witnesses for a preliminary hearing were in the building at the time, police said.

Police said the shooter did not make his way into the courtroom.