ENCINITAS, Calif. — A man was arrested Thursday in Encinitas after a gun went off during a fight, wounding two people, according to San Diego County Sheriff’s Department.

Around 8 a.m., a man was asked to leave a coffee shop in the 400 block of Highway 101 for causing a disturbance there, Lt. Christopher Lawrence said in a news release. This led to an argument in the alley behind the business, Ironsmith Coffee Roasters.

“During the altercation, the coffee shop owner produced a gun,” Lawrence said.

The gun went off and a bullet grazed the neck of the business owner, authorities say. Shrapnel hit the leg of a bystander.

The man who had been asked to leave then grabbed the gun, and the shop owner ran to the Encinitas Fire Station to seek help. Firefighters found the man with the gun and detained him.

Deputies booked the man, 31-year-old Jmar Tarafa, into the Vista Detention Facility on charges of assault with a deadly weapon and brandishing a firearm in a threatening manner.

The owner is not currently facing any charges. An investigation is underway.

“It’s not something I want to be happening in our town, it’s not cool, but, you know, that stuff does happen, it sucks, the owner of the coffee shop is a great person,” said Leon Sabbas, a longtime Encinitas resident and owner at the Home & Away Encinitas.

The sheriff’s department said Tarafa is currently experiencing homelessness. Some of the workers in the area have seen the population pick up, but say issues are infrequent and handled well between the community and police.

“Everything is pretty mellow…we got a good thing going, we don’t have a lot of fights, we don’t have a lot of trouble here,” Sabbas said. “Very once in a while transients get out of hand.”

Sabbas added that last week, a transient had brandished a knife on one of his employees and another tried to headbutt him.

FOX 5’s Alani Letang contributed to this story.