Clipping may help w/the flogging for the short term. Have you had him long? Are you in the room when he does this? He may be seeing your daughter as a threat to his person. When he does this I would put him immediately either in his cage, or a room where you aren't. I know this is hard w/a flying bird, been there, done that. It could be hormonal, & getting extra sleep could help. Longer days & short nights brings on the breeding season. You can offset this somewhat by putting him to sleep earlier & letting him out later. Does he have anykind of relationship w/your daughter? Letting her be involved w/feeding & any fun activitiy may help for him to see her as less a threat. Amazons like drama, so making it a no nonsense "you were bad & I'm not going to spend time w/you" should get your point across to him eventually. Running from him is probably just fun for him. But w/your daughter so young, you may be forced to clip until he develops better manners.