Two people were killed and two others were injured on Tuesday in a shootout in California that prompted a lockdown at two polling stations, authorities said.

The shooting took place in early afternoon in the city of Azusa, 25 miles (40 kilometers) east of Los Angeles, Vanessa Lozano, spokeswoman for the Los Angeles County Fire Department said.

Officers arriving at the scene in a residential neighborhood found "multiple shooting victims" and came under fire, Azusa police chief Steve Hunt said.

Source: b'Voters cast their ballots in the US presidential election at a fire station in Alhambra, California, on November 8, 2016|Source: AFP'

He said officers tending to three victims returned fire after being shot at and the gunman was later pronounced dead at the scene.

"One male victim was transported to a local hospital where he was pronounced dead and two female adults were also transported to a local hospital where they are listed in both in critical condition," the Los Angeles Sheriff's Department said in a statement.

Details about the incident and what prompted it remained sketchy.

Two polling stations in the area were placed on lockdown along with nearby schools, but one of the polling sites later reopened, according to local officials.

Source: b'Source: AFP\xc2\xa0'

Azusa police advised residents to stay clear of the area and shelter in place as officers combed the neighborhood looking for possible other suspects.

Local government official Dean Logan advised voters to find other polling sites to cast their ballots.

"Voters should avoid the area and, if necessary, cast a ballot at an alternate polling location," he tweeted.

A woman inside one of the affected polling stations said she heard shots ring out before officials placed the area on lockdown. Some 30 people were inside when the incident unfolded, she said.

"At first, I thought it was construction but people came running into the room saying they see a guy with a bulletproof vest and a white shirt," she told CNN. "As of right now, they just have us in the voting room and are trying to keep us calm."