A man has been taken into custody for fatally shooting his friend while handling a gun in a fast-food drive-thru in Humble.