The Israeli military said it carried out air strikes in the southern Gaza city of Rafah on Sunday after its troops came under fire from militants.