A nearby transiting rocky exoplanet that is suitable for atmospheric investigation