In the event that any employee of any school district in South Carolina is prosecuted in any action, civil or criminal, or special proceeding in the courts of this State, or of the United States, by reason of any act done or omitted in good faith in the course of his employment, it is made the duty of the school district, when requested in writing by any such public school employee, to appear and defend the action or proceeding in his behalf.