San Bernardino, California (CNN) — All Terry Pettit could do was worry as he stood near the offices of the Inland Regional Center in San Bernardino, California.

News of shootings at the agency for people with developmental disabilities was spreading fast and all Pettit knew about his daughter inside the building came from her text messages on his cell phone.

“Shooting at my work. People shot.”

“Pray for us. I am locked in an office.”

Pettit wept for his daughter as he spoke Wednesday afternoon with reporters. Sirens blared in the background.

“She’s been hiding,” he said.

While the details of yet another mass shooting emerged, relatives spoke of harrowing moments waiting for word about their loved ones.

A gunman or gunmen had killed at least 14 people and 17 others were hurt, officials said.

‘There’s a shooter @ work’

When the shots ran out at the Inland Regional Center, text messaging seemed the safest way to communicate.

Marcos Aguilera, 39, of Riverside, received a message from his wife, a social worker helping babies diagnosed with autism.
“There’s a shooter @ work,” Elaine Aguilera wrote.
“Where r u at,” “R cops there?” and “R u safe,” he wrote back.
“Locked in an office with 3 other people,” she texted, and then added, “I love you.”

Aguilera, who works in the finance department for the Riverside Superior Court, left work and sped to his wife’s office.

Aguilera said his wife heard the gunfire that rang through the three-building complex near the Santa Ana River, with the San Bernardino Mountains in the distance.

“She heard the shots and (other people) crying,” he said.

When someone pulled the fire alarm, many of the roughly 200 people at the facility became confused, Aguilera said.

A SWAT team eventually rescued his wife and two other coworkers. At first she thought they were the attackers. As she walked out, she saw multiple bodies on the floor, Aguilera said.

“I’ve been wondering who would shoot up a building like that … someone who’s helping kids,” he said. “I just don’t know. People are crazy nowadays.”

Rudy Peralta got a text message from his wife, Christina Gonzalez-Peralta, another social worker at Inland Regional Center.

She tweeted, “Check the news. Not sure if we’re having an active shooter.”

Gonzalez-Peralta and 12 coworkers found a file room as refuge, and they felt safe there because it was not well-known, Rudy Peralta said. But when someone suggested that they move furniture to barricade the door, the other employees were too terrified to move.

“Everyone was too scared. ‘I said keep quiet and don’t make noise,'” Rudy Peralta said, recounting his text message to his wife.

The 13 hid for more than half an hour until authorities rescued them.

As he recounted his wife’s story, Rudy Peralta said he had just heard on the radio that the suspects were in a standoff with authorities. “I heard they caught them,” Rudy Peralta added. “I’m anxious to see her and make sure she is OK.”

Then his wife called.

“That’s the first time I talked to her,” said her visibly happy husband.

“She just feels relieved now,” said Peralta. “You hear it on the news, but you never think it would hit so close to home.”

What those near shootout saw, heard

A swarm of police and SWAT officers looked for those behind the massacre, focusing on a six-block residential area of San Bernardino.

Mahir, who asked his first name only be used, told CNN’s Erin Burnett about what it was like to be near the police shootout with possible suspects.

“We didn’t see much of anything. We just heard so many gunshots, it’s crazy,” he said. “Right now, everything seems to be cooled down. We just saw so many SWAT and cops and cop cars, at least a dozen or so.”

Two suspects, “dressed in dark, kind of tactical gear,” died, according to authorities. They were armed with assault-style weapons and handguns.

Norman Rodgers, who lives on the street where the shootout occurred, said he was in his back yard checking on plants when he heard a “barrage of bullets.” He estimated that to be between 100 and 200 rounds.

“That got me in the house real quick. On the floor. In the den. There were policemen everywhere.”

‘We thought it was a fire drill’

David Bowdich, assistant director of the Los Angeles FBI office, said it was not known whether terrorism was the motive.

San Bernardino Police Chief Jarrod Burguan said the shooting was, “at a minimum,” an act of domestic terrorism.

“They came prepared to do what they did, as if they were on a mission,” he said.

The executive director of the Inland Regional Center, Lavinia Johnson, told CNN she believes county health officials were having a holiday event at a conference center where one to three shooters entered and opened fire.