Mohammed said the officer told him he was being detained, and that the soldiers were keeping him there so the protesters would not throw rocks at them. Mohammed said he informed the officer that this was unlawful and amounted to using him as a human shield.
International law forbids forcibly placing civilians near military targets to deter attacks. In 2005, Israel’s Supreme Court outlawed the long-standing practice of using Palestinian civilians in military operations, including the “neighbor procedure,” whereby soldiers would send a Palestinian civilian to the home of a wanted militant to order him out. The Israeli rights group B’Tselem says soldiers have occasionally used such practices in the years since.
Source: Israeli troops put AP photographer in danger during clashes – The Washington Post