The International Press Institute, a nonprofit that aims to protect media freedom, recorded 26 incidents of attacks and threats in the five months to March.