A St. Petersburg man has been after accidentally shooting someone in the chest in August and firing a gun at a woman's house this week, St. Petersburg police said.

Nicholas Kareem Haugabook is being held without bail, according to jail records.

According to an affidavit, on Aug. 16, Haugabook was brandishing a semi-automatic handgun and carelessly pointing it at people in a group. At one point, the victim told Haugabook to put the gun away, a witness said.

Haugabook pointed the gun at the victim, and the gun went off, police said.

Haugabook took the victim to Bayfront Medical Center, but the victim was pronounced dead.

Then on Monday, police said Haugabook pulled out a handgun at a woman's home. She ran into the home as he fired multiple rounds, the affidavit said.

He was already out on bond on child abuse charges, police said.

Haugabook was arrested Tuesday evening.

According to jail records, he has been arrested several times in the past, including on drug charges, battery and resisting arrest.