Israeli forces have fired tear gas as hundreds of Palestinians protested against the detention of a prominent teenage activist and her mother.