SDEROT, Israel — Israel confronted fire along two of its borders on Sunday, with rockets landing from Gaza and a mortar shell crashing in from Syria, prompting Israel to respond with what its military described as “warning shots” at a Syrian position across the frontier for the first time in 39 years.