LOS ANGELES (CBSLA.com) — A suspect was in custody Wednesday after allegedly shooting inside a police search perimeter in the Westlake District.

Los Angeles police had established the perimeter just before midnight following a report of a man with a gun, officials said.

READ MORE: Cold Weather Alert Issued For Antelope Valley

About two hours later, shots were fired near the intersection of W. Third Street and S. Union Avenue.

READ MORE: Newsom, California Lawmakers Reach Deal To Bring Back COVID Sick Pay

A suspect believed to be connected to both incidents was taken into custody.

It was unclear who the shots were directed towards, but it was determined they were not fired at officers.

MORE NEWS: LA Officials Draw Awareness To Human Trafficking Ahead Of Super Bowl

No further details were released.