New York man whose behavior caused flight to be diverted to St. Louis sentenced to 40 days in jail, $8,000 in restitution