A man in Mississippi killed eight people, including a police officer, in a shooting spree that spanned three locations on Saturday and Sunday, the local authorities said.

The police said Willie C. Godbolt, 35, of Bogue Chitto, Miss., was in custody on Sunday for the shootings. The Mississippi Department of Public Safety said in a statement that he would be charged with one count of capital murder and seven counts of first-degree murder.

While handcuffed on the side of a road, a man whom The Clarion-Ledger identified as Mr. Godbolt said he had been “having a conversation” at a home in Bogue Chitto about “me taking my children home” when a police officer arrived, apparently having been called by a neighbor.