Trial begins for man accused of killing officer