Les Winget, 44, whose daughter Nikki, 13, attends the school, called the crime “absolutely unbelievable.”

Jay Smith, executive director of the Ventura County Rainbow Alliance, where Lawrence took part in Friday night group activities for gay teenagers, said, “We’re all shocked that this would happen here.”

The gunman, identified by the police as Brandon McInerney, “is just as much a victim as Lawrence,” said Masen Davis, executive director of the Transgender Law Center. “He’s a victim of homophobia and hate.”

The law center is working with Equality California and the Gay-Straight Alliance Network to push for a legislative review of anti-bias policies and outreach efforts in California schools. According to the 2005 California Healthy Kids Survey, seventh-graders in the state are 50 percent more likely to be harassed in school because of sexual orientation or gender identity than those in 11th grade.

That finding is representative of schools across the country, said Stephen Russell, a University of Arizona professor who studies the issues facing lesbian, gay, transgender and bisexual youth.

Mr. Davis said “more and more kids are coming out in junior high school and expressing gender different identities at younger ages.”

Photo

“Unfortunately,” he added, “society has not matured at the same rate.”

Prosecutors charged Brandon as an adult with murder as a premeditated hate crime and gun possession. If convicted, he faces a sentence of 52 years to life in prison.

Advertisement Continue reading the main story

A senior deputy district attorney, Maeve Fox, would not say why the authorities added the hate crime to the murder charge.

Newsletter Sign Up Continue reading the main story Please verify you're not a robot by clicking the box. Invalid email address. Please re-enter. You must select a newsletter to subscribe to. Sign Up You will receive emails containing news content , updates and promotions from The New York Times. You may opt-out at any time. You agree to receive occasional updates and special offers for The New York Times's products and services. Thank you for subscribing. An error has occurred. Please try again later. View all New York Times newsletters.

In interviews, classmates of the two boys at E. O. Green Junior High School said Lawrence had started wearing mascara, lipstick and jewelry to school, prompting a group of male students to bully him.

“They teased him because he was different,” said Marissa Moreno, 13, also in the eighth grade. “But he wasn’t afraid to show himself.”

Lawrence wore his favorite high-heeled boots most days, riding the bus to school from Casa Pacifica, a center for abused and neglected children in the foster care system, where he began living last fall. Officials would not say anything about his family background other than that his parents, Greg and Dawn King, were living and that he had four siblings. Lawrence started attending E. O. Green last winter, said Steven Elson, the center’s chief executive. “He had made connections here,” Dr. Elson said. “It’s just a huge trauma here. It’s emotionally very charged.”

Since the shooting, hundreds of people have sent messages to a memorial Web site where photographs show Lawrence as a child with a gap in his front teeth, and older, holding a caterpillar in the palm of his hand.

“He had a character that was bubbly,” Marissa said. “We would just laugh together. He would smile, then I would smile and then we couldn’t stop.”

On the morning of Feb. 12, Lawrence was in the school’s computer lab with 24 other students, said Mr. Keith, the police spokesman. Brandon walked into the room with a gun and shot Lawrence in the head, the police said, then ran from the building. Police officers caught him a few blocks away.

Unconscious when he arrived at the hospital, Lawrence was declared brain dead the next day but kept on a ventilator to preserve his organs for donation, said the Ventura County medical examiner, Armando Chavez. He was taken off life support on Feb. 14.

Brandon is being held at a juvenile facility in Ventura on $770,000 bail, said his lawyer, Brian Vogel. He will enter a plea on March 21.

Advertisement Continue reading the main story

At a vigil for Lawrence last week in Ventura, 200 people carried glow sticks and candles in paper cups as they walked down a boardwalk at the beach and stood under the stars. Melissa Castillo, 13, recalled the last time she had seen Lawrence. “He was walking through the lunch room, wearing these awesome boots,” she said. “I ran over to him and said, ‘Your boots are so cute!’ He was like, ‘Yeah, I know.’ ”

She raised her chin and arched an eyebrow in imitation. “ ‘If you want cute boots,’ ” Lawrence had told her, “ ‘you have to buy the expensive kind.’ ” His boots had cost $30.

“So, for Lawrence,” Melissa said to five girls holding pink and green glow sticks, “we have to go get the expensive kind.”