Exodus 22 And if men strive together, and strike a woman with child, so that she be delivered, and no mischief happen, he shall in any case be fined, according as the woman’s husband shall impose on him, and shall give it as the judges estimate. 23 But if mischief happen, then thou shalt give life for life, 24 eye for eye, tooth for tooth, hand for hand, foot for foot, 25 branding for branding, wound for wound, stripe for stripe.
I’m not sure what your Bible states, but the above seems to indicate that if the death of the unborn child is an accident, then a fine must imposed on him according to the woman’s husband - could this fine also include the death penalty? However if the death is a result of evil intent, the penalty is death - the same as for killing a born child.