Authorities say teenage gunmen stormed a primary school in Sao Paulo and opened fire, before being killed themselves.