Fire crews used specialist equipment to rescue the man