A man has been taken into custody after four children were killed at a nursery in the capital of Uganda.