ANKARA, Turkey — Turkish officials threatened to shut down Twitter in the country unless the social-media company blocked the account of a left-wing newspaper that had circulated documents about a military police raid on Turkish Intelligence Agency trucks that were traveling to Syria last January.

The demand came on Thursday, a day after a local court in Adana, a southern Turkish province, issued an order barring coverage of the investigation, hinting at the possibility of an overall ban on social media networks where documents on legal proceedings of the raid have been circulated.

The court argued that publication of the information violated national security and interfered with a continuing inquiry. Turkish government officials strongly denied opposition claims that the intelligence agency’s trucks had carried weapons for extremists fighting the regime of President Bashar al-Assad in Syria.

Instead, the trucks were trying to deliver humanitarian aid for the Turkmen minority in Syria, who had been stranded in the conflict since 2011, officials said.