Gunfire erupted early Monday inside a Birmingham home, leaving one man dead, and a woman running for her life.

The ordeal began about 4:30 a.m. at 3633 45th Avenue North. Birmingham police spokesman Capt. Sean Edwards said two men and a woman were inside the home hanging out and drinking when one of the men - a 24-year-old - starting acting erratic and bizarre.

He pulled out two guns, Edwards said, and just started firing. One of those bullets hit a 24-year-old man in the back. He was pronounced dead on the scene.

The female ran out of the house and hid in some bushes. Edwards said the suspect went looking for her and then broke into another home where there were two children and their grandparents. The suspect then fired shots in that home, but no one was injured.

Nearby police officers rushed to the scene when they heard the shots fired, Edwards said. As they were closing in on the suspect, he jumped out of a back window, got down on the ground and was taken into custody. Police believe drugs may also have been a factor.

"Witnesses said it was just crazy,'' Edwards said.

More information is expected to be released later Monday.