Official: Iran to respond militarily for US attack