A man who barricaded himself in a north Cobb County home and prompted lockdowns Thursday at two nearby schools is in custody, the spokesman for the Cobb County Police Department said.

Officers were dispatched to the 3400 block of Nowlin Road in Acworth about 10:02 a.m. in reference to an armed person, Cobb police spokesman Mike Bowman said. When officers arrived, they heard a single shot fired and learned the suspect had made threats to the other occupants in the residence, he said.

“A shot was fired and a threat was made by the individual who is barricaded inside the house, so the police department had no other choice but to call out the SWAT team,” Bowman said. Multiple attempts to make contact with the suspect inside the house were made to no avail. Though there was no threat to the schools, North Cobb High and Awtrey Middle were placed on lockdown as a precaution while police dealt with the barricaded man.

About 11 a.m., the lockdowns were reduced from a code red, which is a complete lockdown of all classrooms, to a code yellow, which “means school operates normally, but administrators and staff are on heightened alert and school security is in contact and monitoring the situation,” said Angela M. Huff, the chief of staff for the school district.

Just before 3 p.m., Bowman told The Atlanta Journal-Constitution that the situation had ended.

“Individual was taken into custody without incident,” he said. The suspect’s name was not released.

North Cobb and Awtrey were able to follow normal dismissal procedures, Huff told The AJC.

— Staff writer Rodney Thrash contributed to this report.