BAKERSFIELD, Calif. (KGET) — The Bakersfield Police Department is in a standoff with a man at a residence in south Bakersfield who shot an officer in the head with a pellet gun Thursday morning.

Around 1 a.m. police responded to Tollhouse Drive near South Bliss Street just south of Highway 58 to assist the Bakersfield Fire Department who encountered Alexander Fuentes, 34, who was multiple starting fires at a residence while armed with a gun, according to BPD. When officers arrived they located the man who then shot an officer in the head with the gun. The officer sustained minor injuries and the gun was determined to be a pellet gun.

Police say the Fuentes started multiple fires throughout the standoff and then barricaded himself inside the residence. He has also armed himself with multiple weapons including a sword and a knife.

The Bakersfield Police surrounded the residence and are attempting to call Fuentes out of the residence over a loudspeaker. Police were asking Fuentes to come out of the residence with his hands up and were also warning him they may deploy a K9 officer.

Negotiators and family members of the man were at the scene trying to negotiate a peaceful surrender, according to BPD.

Around 10 a.m. officers were able to take Fuentes into custody using foam baton rounds, according to BPD. Fuentes was arrested and faces charges of resisting arrest with violence, assault on an officer and multiple charges regarding the fires started by Fuentes.

This is a developing story and will be updated as more information becomes available.