A man was taken into custody early Friday morning after police said he fired multiple rounds at Gainesville officers.

The officers were responding to a report of an intoxicated person at the HomeTowne Studios extended stay motel on Jesse Jewell Parkway when they encountered the man, according to Gainesville police.

“As officers attempted to make contact, the subject immediately produced a firearm and began firing,” police said on Facebook.

The man was taken into custody before anyone was injured.

The GBI was consulted but is not investigating, a spokeswoman told AJC.com. Hours earlier,  the state agency was called to an officer-involved shooting in Cobb County that left an officer with a head wound and a carjacking suspect dead.

RELATED: Officer shot in head, carjacking suspect killed in Cobb, police say

The suspect, identified by the GBI as 37-year-old Martin Humberto Sanchez Fregoso of Smyrna, was killed. The injured officer is expected to make a full recovery, according to Cobb police.

That incident was the 51st officer-involved shooting the GBI has investigated this year.

— Please return to AJC.com for updates.

In other news:

The incident started when police first showed up to a carjacking call about six miles away at Delk and Powers Ferry roads.