Among those killed were 13 men and four women, police said. The motive behind the attack was not immediately known.