Israeli authorities have released a Palestinian director who was detained by the army after being attacked by Jewish settlers in the West Bank.