The man was convicted of the attempted murder of a Frederick County Sheriff’s deputy and sentenced to life in prison