Man confesses to killing 8 people, including deputy and 2 children,

Police arrest shooting suspect Godbolt. (THERESE APEL/AP)

A deranged Mississippi dad hellbent on getting his children from his estranged wife fatally shot eight people, including two boys and a deputy sheriff, on Saturday night, officials said.

Willie Corey Godbolt, 35, gunned down his victims at three separate homes in a rural part of the state and only stopped his bloodshed when he ran out of bullets, according to state investigators.

He was taken into custody by local law enforcement after being shot. Godbolt has been charged with capital murder and seven counts of first-degree murder, The Clarion-Ledger reported.

He told a Clarion-Ledger newspaper reporter at the scene that he had hoped to die in a shootout.