AZTEC — District Judge William Birdsall on Tuesday sentenced Gabriel Alcon to 10 years in prison for second-degree murder and drug trafficking.

Alcon, 23, accepted a plea agreement on April 5 that capped his sentence for both crimes at 10 years. His trial was scheduled to start on Monday.

Alcon shot and killed 32-year-old Anthony Jacquez on May 27, 2012.

In his sentencing hearing Tuesday, Alcon said that Jacquez was his friend, but he shot him because he was threatening a woman with a machete, according to court documents.

Members of Alcon's and Jacquez's families spoke during the hearing.

San Juan County Chief Deputy District Attorney Brent Capshaw said the state offered the plea deal because of issues with witnesses.