A peculiarly short-duration gamma-ray burst from massive star core collapse