The incident took place at the Central Reserve Police Force (CRPF) headquarters in south Delhi's Vasant Kunj where the home minister had gone to celebrate "Shaurya Diwas".
Minister of State for Home Kiren Rijiju and CRPF Director General Prakash Mishra were also stuck along with him.
"The lift got stuck due to a technical fault. It's a single-storey building. We managed to take the ministers and our chief out from the lift within a few minutes. They were hoisted up through the roof," said a CRPF official.
He said that they pressed the alarm when the lift refused to budge.
The official said that the home minister was the last to be hauled up through the roof, after the CRPF chief and Rijiju.