WASHINGTON (AP) — President Barack Obama says ‘‘all of us are heartbroken by what happened’’ this weekend during a shooting at a Sikh temple in Wisconsin.

Obama told reporters in the Oval Office on Monday that Americans would ‘‘recoil’’ at the violence if ethnicity were a factor. The president says ‘‘we are all one people and we look after one another.’’

Obama spoke to reporters after he signed unrelated legislation at the White House.

A gunman killed six people Sunday before being shot to death by police. Police identified the gunman as Wade Michael Page, a 40-year-old Army veteran and former leader of a white supremacist heavy metal band.