Police in California on Tuesday were investigating a deadly shooting at a mosque complex as a hate crime after two teenage gunmen killed three people a day earlier.

Monday's attack on the Islamic Center of San Diego has also drawn widespread national and international condemnation.

"We are actively investigating this as a hate crime," San Diego Police Chief Scott Wahl told reporters. "There was definitely hate rhetoric that was involved."

The Islamic center describes itself on its website as the largest mosque in San Diego County, which is in southern California.

"The suspects at this point appear to have died from self-inflicted gunshot wounds. There were no officers involved in firing their weapons," Wahl said.