Local officials say the militants fled after the Monday night clash , which lasted for three hours .