Livingston deputy shoots, kills man brandishing a gun