JERUSALEM — An Israeli soldier who shot and killed a plainly unarmed Palestinian boy during mass protests along the Gaza border fence last year has been sentenced to a month in military prison and demoted.

It was the first conviction of a soldier to result from a handful of criminal investigations that were opened after hundreds of Palestinians were killed during the protests, which began in March 2018 and continue, albeit in reduced form.

The boy who was killed, Othman Helles, 14, was gunned down on July 13, 2018, just as he began to climb the border fence directly opposite an Israeli sniper position. The scene was captured on video and was the subject of a BBC News Arabic documentary.

The Israeli soldier, who was not identified, agreed on Monday to a plea bargain in which he was convicted of “disobeying an order leading to a threat to life or health.”