Detection of a γ-ray burst of very long duration and very high energy