Waco man attempts to take officer's gun during arrest