Spin dynamics of a J1-J2 antiferromagnet and its implications for iron pnictides