The man who shot and killed a Burleson County deputy in 2013 during a surprise raid at his home has pleaded guilty to drug-related charges.

Henry Magee has been sentenced to 18 months in jail for felony possession of marijuana.

The drug charges stem from a December 2013 no-knock raid by the Burleson County Sheriff's Office. The SWAT team acquired that particular kind of search warrant based on information about Magee possessing drugs and illegal firearms.

During that raid, Magee shot and killed Burleson County Deputy Adam Sowders.

Magee was initially charged with capital murder. However, Magee's attorney argued before a grand jury that Magee was acting in self-defense.

Because the SWAT team was not required to knock or identify themselves before entering Magee's mobile home near Snook, Magee's attorney argued that Magee fired his weapon against "unknown intruders" to protect himself, his property, and his pregnant girlfriend.

The grand jury dropped the capital murder charge.

During the raid, the SWAT team found the marijuana plants they were looking for and Magee was charged with felony possession of marijuana. His trial was set to begin on April 3.

He issued his plea in a district court last week.