Iowa teacher fired for sex with student