An eastern Libyan military plane was hit on Sunday by forces allied to the internationally recognised government near the capital Tripoli, both sides said.