Jerusalem police have detained an Arab in his 20s on charges of assaulting a Jewish resident of the city and documenting the attack on the TikTok social media network.