Palestinian officials say security forces have arrested two Palestinian militants over rocket attacks on Jewish settlements in the Gaza Strip .