Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

Four people were wounded in what police think was a targeted shooting outside a courthouse in Bridgeport, Connecticut, on Monday afternoon, police said.

Police responded to reports of a shooting at a courthouse in Bridgeport, Connecticut, on Monday, Jan. 27, 2020. NBC Connecticut

The shooting occurred at 12:15 p.m. outside Bridgeport Superior Court on Golden Hill Street, Rowena White, a spokeswoman for the mayor's office, said in a statement. The courthouse was locked down following reports of gunshots. It has since closed.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Police said they think the shooting may be related to a homicide that occurred in the city Sunday night.

On Monday, four people inside a vehicle were struck by someone in another vehicle, officials said.

Three of the victims exited the vehicle and sought cover in the courthouse, police said. The fourth, who was in the driver's seat, was found outside near the car, police said.

Download the NBC News app for breaking news

Two of the victims sustained serious injuries and were in surgery Monday afternoon, police told reporters at a news conference. Two others sustained injuries that were not life-threatening. All four are expected to survive.

Mayor Joe Ganim said three people were in custody.

Connecticut State Police said they was assisting with the investigation.