Former nurse sentenced after deadly medical mistake