Yes, birds can attack drones - in my case I saw a bird of prey attack (he gave up at the last moment), often seagulls, pigeons or swallows fly very close and probably try to chase away the intruder. In such situations it is best to fly away quickly to avoid collision.
Below is a short video of the attack of a predatory bird on a drone
Picture number (ID): 1705
See other galleries: