Turkey's military returned fire at Islamic State targets in northern Syria on Tuesday, after two mortar shells from Syria hit a Turkish border town, broadcaster NTV said, citing the military.

The military fired 40 shells at four Islamic State targets in Syria, NTV said.

The two mortar shells, which hit the town of Karkamis but did not cause casualties, were apparently fired during clashes between Syrian rebels and Islamic State militants in northern Syria, state-run Anadolu Agency said.

Karkamis neighbors the Syrian town of Jarablus, which Turkish-backed Syrian rebels are preparing to attack and seize from Islamic State, according to a senior rebel official, a move that would frustrate Kurdish hopes to expand there.

Get the Monitor Stories you care about delivered to your inbox. By signing up, you agree to our Privacy Policy

The mortar shells hit the garden of a property linked to a mosque in Karkamis after striking power lines, Anadolu said. Security forces subsequently sealed off the area and warned people over loudspeaker to stay at home, it said.

On Monday, Turkey's military launched howitzer attacks on Islamic State while artillery pounded Kurdish YPG militants in Syria, whom Ankara sees as an extension of its own Kurdish insurgency.