The defendant, motivated by prejudice, grabbed the 3-year-old girl and forced her under the water, authorities said.