Israel’s prime minister said the pilot stabbed a colleague and tried to crash the plane before passengers subdued him.