Flight cancel due to negligence of immigration officer

There was a fake complaint against me in my home town. Everything was solved by district court. During boarding time i showed all the necessary documents, even i was there at the airport exact 3 hour prior from departure time.