Photodissociation of organic molecules in star-forming regions