President Barack Obama says the attack had been a “heinous and cowardly act,” but said it was not yet known who carried out the attack and why.