Crisis negotiators spoke with Grammer by telephone for "several hours," but he hung up on them around 12:30 p.m. according to Sgt. Diane Hecht of the Sheriff's Headquarters Bureau
Hours into the standoff, after failing to talk the man out of the room, SWAT officers sent gas into it. They still heard nothing, and then finally went into the room. They found the suspect lying on the bed suffering from an apparent self-inflicted gunshot wound to the upper body, said Sgt. Hecht. He was air-lifted to a hospital in critical condition.
A gun was recovered at the scene, Sgt. Hecht said. It was unknown whether the gun was the alleged murder weapon.
Grammer's two dogs, who were with him in the motel room, were uninjured.
Earlier Thursday, a California Highway Patrol officer ran a check of the license plate of a car parked outside the motel around 7 a.m. The query came back with an outstanding murder warrant out of Kansas, dated June 8.
Police say the officer then confirmed with management at the motel that the suspect named on the warrant was registered.
The officer requested help from the sheriff's department. After SWAT and other law enforcement personnel arrived, they ordered the suspect to exit the room, but he refused. He had been barricaded in the room since police arrived.
The suspect is wanted for allegedly killing a woman in Kansas.
City News Service contributed to this report.