A man is in custody after allegedly shooting at deputies and then setting an apartment on fire in Compton Thursday morning.

The events began when deputies were shot at while responding to an assault with a deadly weapon call, Los Angeles County Sheriff’s Department Deputy Rivera said.

All of the deputies were accounted for after the shooting, the deputy added.

About 7:30 a.m., the incident turned into a barricade situation at an apartment building in the 100 block of Acacia Avenue, the Sheriff’s Department stated in a news release.

Aerial video from Sky5 showed a large response by deputies, including armored vehicles, just after 8 a.m.

A crisis negotiation team was sent to try to contact the suspect, who was described only as a man.

Shortly before 8:30 a.m., smoke started billowing from the apartment deputies were surrounding.

A short time later, fire could be seen shooting through the roof as the apartment became engulfed in flames.

The suspect, who officials believe set the fire, was later taken into custody without further incident, the Sheriff’s Department stated.

No details about the suspected shooter or the initial assault call have been confirmed.

Anyone with information is asked to call Crime Stoppers at 800-222-8477.