Derrick Foster apologized to the officers in court saying he has and will continue to respect the law.
"Just to let you know I am sorry about what happened," he said.
Anthony Garrison, one of the officers injured during the raid says he accepts Foster's apology.
"I think Mr. Foster was sincere," Garrison said. "I'm sure that he made a terrible mistake but sometimes your mistakes have consequences and he's now dealing with those consequences."
Garrison and his partner John Gillis were shot during a house raid in April. Both officers are back on the job.
Several community members wrote letters in support of Foster. Franklin County Prosecutor Ron O'Brien says the plea deal was fair to everyone involved. He notes Foster did not have a criminal record and that allowed for a shorter sentence.
"It will permit him to serve four years in prison and pay for his error," O'Brien said. "At the same time we don't have to have a trial, which he tries to claim self defense was an excuse for his conduct."
The maximum possible sentence was 19 years. Foster was sentenced to five, but he will be eligible for release in four.