Authorities are investigating the attack as a possible hate crime after the suspect, now in custody, chanted pro-Palestinian slogans.