A gunman opened fire outside a Los Angeles County police station on Wednesday afternoon, wounding one sheriff’s deputy, authorities said.

The deputy was shot in the shoulder at 2:45 p.m. at the Lancaster police station in the California city — about 77 miles north of Los Angeles, the sheriff’s office said.

Police were investigating if the gunfire came from an apartment building across the street from the station, but haven’t determined exactly where the shooter opened fire from.

The deputy was rushed to a nearby hospital. The person’s condition was not immediately known.

The shooter is still at large, police said.

The sheriff’s office is sealing off the area around the station and dispatching a SWAT team to the area, authorities said.