How widely the rule is being implemented across Afghanistan and the scale of its impact were not entirely clear.

A teacher described the decision as “truly heartbreaking” and said his smartphone was confiscated on Wednesday, before being returned with a warning not to carry it again.