A Derby Acres man described by Kern County Sheriff's deputies as "suicidal" and armed with several firearms was taken into custody early Sunday after a standoff lasting more than five hours.

According to a sheriff department news release, deputies fired at Steven Cordova, 40, and took him into custody with non-life threatening injuries.

Deputies first arrived at the residence of Cordova in the 24000 block of Highway 33, at 12:25 a.m.

Contact was made with Cordova, according to deputies, but at 3:35 a.m. he opened the front door and fired several shots at deputies, and then continued firing from inside the home.

Nearby homes were evacuated and traffic on Highway 33 between Cloud and Derby avenues was diverted.

About 6 a.m. outside the residence, deputies and members of the county SWAT team engaged Cordova, who was allegedly armed with an assault rifle and a handgun, and took him into custody.

He was taken to Kern Medical Center with non-life threatening injuries.

The investigation is continuing.