When Rama is reigning as a virtuous king, a humble aged Brahmin comes to him, weeping, with his dead son in his arms. He says that Rama must have committed some sin, or else his son would not have died.
(74) The sage Narada explains to Rama that a Shudra is practicing penances, and this is the cause of the child's death.
(75) Rama goes on a tour of inspection in his flying chariot, and finds an ascetic doing austerities, and asks who he is. "
(76) Hearing the [inquiring] words of Rama of imperishable exploits, that ascetic, his head still hanging downwards [as part of his austerities] answered:— 'O Rama, I was born of a Shudra alliance and I am performing this rigorous penance in order to Conquer the heavens with this body. Lord Rama killed him due to his bad intentions and there by giving Shambuka his Moksha.
its confirmed in bhagwad gita that lord never do bhed bhava. so this story from padma purana is wrong ? but also in maharaas chapter of bhagwatam shri shukdeva said -