Seventeen people, including two police officers and the gunman, were wounded in the attack, authorities said