Man charged with killing bus driver takes plea deal