Prosecutors say the man will be eligible for parole after six years.