Disability retirement

I retired early this year at the age of 48 on a disability retirement from government job.  I was a federal law enforcement officer.  I was allowed to take money out of my TSP (401K) and TSP took part of it for taxes.  Will I have to pay the IRS any penalty for taking a partial disbursement from my TSP?   If I didn’t get hurt on the job I would have retired at 52.