A vulnerable schoolboy attempted to take his own life despite staff being warned of his intentions that morning, an employment tribunal has revealed.