A crocodile has been captured after it was found swimming in floodwaters in Ingham in Far North Queensland.