Astronomers have detected a mysterious cosmic 'heartbeat' repeating every 22 minutes, unlike any known celestial object.