Afghanistan's Taliban government said on Thursday that Pakistan carried out two drone strikes on Kabul the day before, even as the United Nations welcomed a critical ceasefire between the two neighbors after days of fighting killed dozens in both countries and injured hundreds more.

The Wednesday attacks came just before the two countries declared a truce following the deadliest violence between them in years.

Khalid Zadran, a spokesman for the Kabul police chief, said the first strike "had targeted a civilian house."

Zadran said the second strike hit a fuel tanker outside a market, starting a large fire.

Zadran did not give casualty figures, but hospital doctors said earlier that five people were killed and dozens were injured.

Abdul Rahim, whose house was completely destroyed in the drone strike, said people had "seen Pakistani drones."

There was no immediate response in Islamabad on the latest accusations from Kabul and it was not immediately clear how this would affect the ceasefire.

Pakistani officials, speaking on condition of anonymity because they were not authorized to discuss ongoing operations, had earlier told The Associated Press that Pakistani forces had targeted militant hideouts on Wednesday.